diff options
-rw-r--r-- | crawl-ref/source/effects.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index d236f38719..241a1e909f 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -277,7 +277,8 @@ int torment_monsters(coord_def where, int pow, int caster, actor *attacker) // Currently, torment doesn't annoy the monsters it affects // because it can't kill them, and because hostile monsters use // it. It does alert them, though. - behaviour_event(monster, ME_ALERT, MHITYOU); + if (attacker != NULL) + behaviour_event(monster, ME_ALERT, attacker->mindex()); } monster->hurt(NULL, hploss, BEAM_TORMENT_DAMAGE); |