diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-25 18:55:40 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-25 18:57:40 -0800 |
commit | 0cc3c2ec15a7855d4cbd746ebe7a8f8139aaa4fc (patch) | |
tree | 2500c3fe398e43b3a2832e04f18988e089697742 /crawl-ref/source/mon-act.cc | |
parent | c34814cfad40cc842a158b6aa910db2b4be381fa (diff) | |
download | crawl-ref-0cc3c2ec15a7855d4cbd746ebe7a8f8139aaa4fc.tar.gz crawl-ref-0cc3c2ec15a7855d4cbd746ebe7a8f8139aaa4fc.zip |
Bug #35: auto-exlcusions from monster clouds
Monsters leaving behind trails of clouds (like fire elementals) or
leaving clouds on death (like simulacrums) were causing auto-exclusions
to be placed, as if they were generated by fog machines; fixed.
Diffstat (limited to 'crawl-ref/source/mon-act.cc')
-rw-r--r-- | crawl-ref/source/mon-act.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc index d930815296..c1d45b9eab 100644 --- a/crawl-ref/source/mon-act.cc +++ b/crawl-ref/source/mon-act.cc @@ -2302,7 +2302,8 @@ static bool _monster_eat_item(monsters *monster, bool nearby) if (death_ooze_ate_corpse) { place_cloud ( CLOUD_MIASMA, monster->pos(), - 4 + random2(5), monster->kill_alignment() ); + 4 + random2(5), monster->kill_alignment(), + KILL_MON_MISSILE ); } if (death_ooze_ate_good) @@ -3403,14 +3404,16 @@ static bool _monster_move(monsters *monster) || monster->type == MONS_FIRE_ELEMENTAL) { place_cloud( CLOUD_FIRE, monster->pos(), - 2 + random2(4), monster->kill_alignment() ); + 2 + random2(4), monster->kill_alignment(), + KILL_MON_MISSILE ); } if (monster->type == MONS_ROTTING_DEVIL || monster->type == MONS_CURSE_TOE) { place_cloud( CLOUD_MIASMA, monster->pos(), - 2 + random2(3), monster->kill_alignment() ); + 2 + random2(3), monster->kill_alignment(), + KILL_MON_MISSILE ); } } else |