diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-12 17:27:03 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-12 17:27:03 +0000 |
commit | 4fd0078136544a8230f7581e87b57ecd53478414 (patch) | |
tree | 5ffcfbbda4fd906a69fefdb40e63fcf5089eb52a /crawl-ref/source/ouch.cc | |
parent | b0636c2afda2df26ab66aeef256a025e19bb68d6 (diff) | |
download | crawl-ref-4fd0078136544a8230f7581e87b57ecd53478414.tar.gz crawl-ref-4fd0078136544a8230f7581e87b57ecd53478414.zip |
Add more player duration cleanups, and fix ouch() napalm death sources.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7439 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r-- | crawl-ref/source/ouch.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index f38eca7e9b..078d80be82 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -795,10 +795,13 @@ static void _yred_mirrors_injury(int dam, int death_source) if (dam <= 0 || invalid_monster_index(death_source)) return; - simple_god_message(" mirrors your injury!"); - monsters *mon = &menv[death_source]; + if (!mon->alive()) + return; + + simple_god_message(" mirrors your injury!"); + #ifndef USE_TILE flash_monster_colour(mon, RED, 200); #endif |