ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/attack.C
(Generate patch)

Comparing deliantra/server/server/attack.C (file contents):
Revision 1.54 by elmex, Sun Apr 15 15:59:57 2007 UTC vs.
Revision 1.55 by elmex, Sun Apr 15 19:23:18 2007 UTC

1921 if (magic && did_make_save (op, op->level, 0)) 1921 if (magic && did_make_save (op, op->level, 0))
1922 maxdam = maxdam / 2; 1922 maxdam = maxdam / 2;
1923 1923
1924 attack_message (maxdam, maxattacktype, op, hitter); 1924 attack_message (maxdam, maxattacktype, op, hitter);
1925 1925
1926 if (op->type == DOOR && maxdam > 0) { LOG (llevDebug, "DOOR WAS HIT: %d BY %s\n", maxdam, hitter->debug_desc ()); }
1927 op->stats.hp -= maxdam; 1926 op->stats.hp -= maxdam;
1928 1927
1929 /* Eneq(@csd.uu.se): Check to see if monster runs away. */ 1928 /* Eneq(@csd.uu.se): Check to see if monster runs away. */
1930 if ((op->stats.hp >= 0) && 1929 if ((op->stats.hp >= 0) &&
1931 (QUERY_FLAG (op, FLAG_MONSTER) || op->type == PLAYER) && 1930 (QUERY_FLAG (op, FLAG_MONSTER) || op->type == PLAYER) &&

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines