diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-08 19:17:11 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-08 19:17:11 +0000 |
commit | 9aef1290d58dd282eb25ae663a55b089e4eac378 (patch) | |
tree | 8bc844239e0ff171ba7dfb320bac03af31f3acd6 | |
parent | 99e98160d304efc49fcf48f905bbe3fa5c56c990 (diff) | |
download | crawl-ref-9aef1290d58dd282eb25ae663a55b089e4eac378.tar.gz crawl-ref-9aef1290d58dd282eb25ae663a55b089e4eac378.zip |
And enable the "attack friend" conduct in the right place.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7191 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/spells2.cc | 3 | ||||
-rw-r--r-- | crawl-ref/source/spells3.cc | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index d8264d3d2c..a3fb391407 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -785,6 +785,8 @@ bool vampiric_drain(int pow, const dist &vmove) { set_attack_conducts(conducts, monster); + behaviour_event(monster, ME_ANNOY, MHITYOU, you.pos()); + if (mons_is_unholy(monster)) { mpr("Aaaarggghhhhh!"); @@ -813,7 +815,6 @@ bool vampiric_drain(int pow, const dist &vmove) mprf("You feel life coursing from %s into your body!", monster->name(DESC_NOCAP_THE).c_str()); - behaviour_event(monster, ME_ANNOY, MHITYOU, you.pos()); monster->hurt(&you, inflicted); if (monster->alive()) diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index ac9505d13d..8739c7f965 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -210,7 +210,7 @@ int cast_smiting(int power, dist &beam) mprf("You smite %s!", monster->name(DESC_NOCAP_THE).c_str()); behaviour_event(monster, ME_ANNOY, MHITYOU); - if (mons_is_mimic( monster->type )) + if (mons_is_mimic(monster->type)) mimic_alert(monster); } |