From 155946e89327f4a852aea98e00de172d021e2ada Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Tue, 17 Nov 2009 11:26:28 -0800 Subject: Alert tormented monsters even if attacker == NULL --- crawl-ref/source/effects.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 08b62e4e00..c161837a6f 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -322,8 +322,8 @@ int torment_monsters(coord_def where, int pow, int caster, actor *attacker) // because it can't kill them, and because hostile monsters use // it. It does alert them, though. // XXX: attacker isn't passed through "int torment()". - if (attacker != NULL) - behaviour_event(monster, ME_ALERT, attacker->mindex()); + behaviour_event(monster, ME_ALERT, + attacker ? attacker->mindex() : MHITNOT); } monster->hurt(NULL, hploss, BEAM_TORMENT_DAMAGE); -- cgit v1.2.3-54-g00ecf