summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 2bccb6103a..c13c762222 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -153,7 +153,8 @@ int holy_word_monsters(coord_def where, int pow, int caster,
// Currently, holy word annoys the monsters it affects
// because it can kill them, and because hostile
// monsters don't use it.
- behaviour_event(monster, ME_ANNOY, MHITYOU);
+ if (attacker != NULL)
+ behaviour_event(monster, ME_ANNOY, attacker->mindex());
if (monster->speed_increment >= 25)
monster->speed_increment -= 20;