check (against your Confusing Touch casting power at the time of hitting the monster, not at the time of casting the spell.) Balancing input sought.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1759 c06c8d41-db1a-0410-9941-cceddc491573
U3SFBWHMMMO2PY6PAX7FMSBSND4RCWGJR42HB47LNQXLOX7ZOB6QC // declaring these just to pass to the enchant functionbolt beam_temp;beam_temp.flavour = BEAM_CONFUSION;
// FIXME Currently Confusing Touch is the *only* way to get// here. Generalise.const int pow = calc_spell_power(SPELL_CONFUSING_TOUCH, true, false);if (!check_mons_resist_magic(def, pow)){// declaring these just to pass to the enchant functionbolt beam_temp;beam_temp.flavour = BEAM_CONFUSION;mons_ench_f2( def, beam_temp );}