diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-03 18:02:39 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-03 18:02:39 +0000 |
commit | b0afcc8dd38ff00d80b4955bdc2f12c3a843c594 (patch) | |
tree | 34b7ae461b462f3a9ba0dedf70c2b6c2d0bd41c4 /crawl-ref/source/beam.cc | |
parent | 81af4f86540998fcfe758e757ddb2098ac0733b8 (diff) | |
download | crawl-ref-b0afcc8dd38ff00d80b4955bdc2f12c3a843c594.tar.gz crawl-ref-b0afcc8dd38ff00d80b4955bdc2f12c3a843c594.zip |
Fix [2504221]: if a monster gets both Slow and Haste (by being slowed and
then speeding up from Zin's Recitation power) don't give a confusing
description.
I left in the possibility of actually having both enchantments at once;
arguably Slow should just be deleted in this case.
Fixed doubled message when enchanting a creature with haste/slow.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8882 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 594f241155..b037cc74f4 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -4822,7 +4822,7 @@ mon_resist_type bolt::apply_enchantment_to_monster(monsters* mon) case BEAM_SLOW: // try to remove haste, if monster is hasted - if (mon->del_ench(ENCH_HASTE)) + if (mon->del_ench(ENCH_HASTE, true)) { if (simple_monster_message(mon, " is no longer moving quickly.")) obvious_effect = true; @@ -4843,7 +4843,7 @@ mon_resist_type bolt::apply_enchantment_to_monster(monsters* mon) return (MON_AFFECTED); case BEAM_HASTE: - if (mon->del_ench(ENCH_SLOW)) + if (mon->del_ench(ENCH_SLOW, true)) { if (simple_monster_message(mon, " is no longer moving slowly.")) obvious_effect = true; |