diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-04 04:37:24 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-04 04:37:24 +0000 |
commit | dabc27ffa91d8e115296f49461742c080813e877 (patch) | |
tree | 27f0018ea95faf161af06b4662561450b2e662a0 /crawl-ref/source/beam.cc | |
parent | 396c208cb4e1213a8a7ae02ff30778acfeb4fd1d (diff) | |
download | crawl-ref-dabc27ffa91d8e115296f49461742c080813e877.tar.gz crawl-ref-dabc27ffa91d8e115296f49461742c080813e877.zip |
Don't display the warning prompt for firing a charming beam (from e.g. a
wand of enslavement) at a non-holy monster, since it doesn't generate
negative conducts then.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5467 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index a0f9f129f5..0696d4510a 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -4300,11 +4300,7 @@ static int _affect_monster(bolt &beam, monsters *mon, item_def *item) remove_sanctuary(true); } - if (beam.flavour != BEAM_CHARM) - set_attack_conducts(mon, conduct); - // No charming holy beings! - else if (mons_is_holy(mon)) - conduct.set(DID_ATTACK_HOLY, mon->hit_dice, true, mon); + set_attack_conducts(mon, conduct); if (you.religion == GOD_BEOGH && mons_species(mon->type) == MONS_ORC @@ -5456,6 +5452,10 @@ static bool _nasty_beam(monsters *mon, bolt &beam) // now for some non-hurtful enchantments + // No charming holy beings! + if (beam.flavour == BEAM_CHARM) + return (mons_is_holy(mon)); + // degeneration / sleep if (beam.flavour == BEAM_DEGENERATE || beam.flavour == BEAM_SLEEP) return (mons_holiness(mon) == MH_NATURAL); |