summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-24 04:45:28 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-24 04:45:28 +0000
commit97f02f9ce121a2b74a270ed44d525f572f293092 (patch)
treee84be2cf33276e03da7609a8fe362ca0b32133f9 /crawl-ref/source/monstuff.cc
parent5981c8daab330859f56f5a17a55b7c877797cb62 (diff)
downloadcrawl-ref-97f02f9ce121a2b74a270ed44d525f572f293092.tar.gz
crawl-ref-97f02f9ce121a2b74a270ed44d525f572f293092.zip
Since dancing weapons without the MF_HARD_RESET flag fall from the air
instead of disappearing when their abjuration time runs out, don't display the "disappears in a puff of smoke" message for them. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4579 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index a6225e6e0c..d6778f486a 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -822,19 +822,19 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent)
{
if (!silent)
{
- if (hard_reset)
- simple_monster_message( monster,
- " disappears in a puff of smoke!" );
- else
+ if (!hard_reset)
+ {
simple_monster_message(monster, " falls from the air.",
MSGCH_MONSTER_DAMAGE, MDAM_DEAD);
- death_message = false;
+ death_message = false;
+ }
}
- if (hard_reset)
- place_cloud( random_smoke_type(),
- monster->x, monster->y, 1 + random2(3),
- monster->kill_alignment() );
+ if (!hard_reset)
+ {
+ if (killer == KILL_RESET)
+ killer = KILL_DISMISSED;
+ }
}
switch (killer)