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.98 by root, Mon Sep 29 11:59:55 2008 UTC vs.
Revision 1.99 by root, Sun Nov 16 03:52:13 2008 UTC

780 * for help. */ 780 * for help. */
781 if (op->type != PLAYER && !can_see_enemy (op, hitter) && !op->owner && rndm (0, op->stats.Int)) 781 if (op->type != PLAYER && !can_see_enemy (op, hitter) && !op->owner && rndm (0, op->stats.Int))
782 npc_call_help (op); 782 npc_call_help (op);
783 783
784 /* if you were hidden and hit by a creature, you are discovered */ 784 /* if you were hidden and hit by a creature, you are discovered */
785 if (op->hide && QUERY_FLAG (hitter, FLAG_ALIVE)) 785 if (op->flag [FLAG_HIDDEN] && hitter->flag [FLAG_ALIVE])
786 { 786 {
787 make_visible (op); 787 make_visible (op);
788 788
789 if (op->type == PLAYER) 789 if (op->type == PLAYER)
790 new_draw_info (NDI_UNIQUE, 0, op, "You were hit by a wild attack. " "You are no longer hidden!"); 790 new_draw_info (NDI_UNIQUE, 0, op, "You were hit by a wild attack. " "You are no longer hidden!");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines