From 1f0e3e2749e11f5bab959ac8c504f64a3ce20f4c Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 17 Apr 2009 19:16:12 +0000 Subject: When annoying monsters affected by holy word, make them target the holy word user instead of the player, as is done with torment already. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9603 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/effects.cc') 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; -- cgit v1.2.3-54-g00ecf