Cold resistance was broken, fixed.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3349 c06c8d41-db1a-0410-9941-cceddc491573
UW4XQAAAV3S2ZVBLMSK6VQG6AMYR6DRKXFP64HHBC6Z3QIUWPVXQC
case SPELL_BOLT_OF_DRAINING:
case SPELL_AGONY:
case SPELL_SYMBOL_OF_TORMENT:
{
if (!foe)
return (true);
// Check if the foe *appears* to be immune to negative energy.
// We can't just use foe->res_negative_energy() because
// that'll mean monsters can just "know" the player is fully
// life-protected if he has triple life protection.
const mon_holy_type holy = foe->holiness();
return (holy == MH_UNDEAD || holy == MH_DEMONIC
|| holy == MH_NONLIVING || holy == MH_PLANT);
}
case SPELL_DISPEL_UNDEAD:
return (!foe || foe->holiness() != MH_UNDEAD);