diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-27 23:01:23 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-27 23:01:23 +0000 |
commit | be4904312192617e0b6e8223a2edb8a569fd6ad2 (patch) | |
tree | e93aa7329d1bd175a9ff8afddc5ebfa149b72d28 /crawl-ref/source/spells4.cc | |
parent | 9049bb82438337e761d51c54686a3cfefb461d45 (diff) | |
download | crawl-ref-be4904312192617e0b6e8223a2edb8a569fd6ad2.tar.gz crawl-ref-be4904312192617e0b6e8223a2edb8a569fd6ad2.zip |
Monsters should be annoyed by being hit by spells. [2266773]
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8827 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r-- | crawl-ref/source/spells4.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 049b901be9..66a786b29d 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -77,7 +77,10 @@ static bool _player_hurt_monster(monsters& m, int damage) { m.hurt(&you, damage); if (m.alive()) + { print_wounds(&m); + behaviour_event(&m, ME_WHACK, MHITYOU); + } } return (!m.alive()); |