Core/Spells: Deep freeze should do damage instead of freezing on targets with permanent stun immunity.

This commit is contained in:
kaelima
2011-09-07 00:19:40 +02:00
parent 5823b0379b
commit 9d90c8245b
2 changed files with 15 additions and 0 deletions
+8
View File
@@ -722,6 +722,14 @@ void Spell::SpellDamageSchoolDmg(SpellEffIndex effIndex)
}
break;
}
case SPELLFAMILY_MAGE:
{
// Deep Freeze should deal damage to permanently stun-immune targets.
if (m_spellInfo->Id == 71757)
if (unitTarget->GetTypeId() != TYPEID_UNIT || !(unitTarget->IsImmunedToSpellEffect(sSpellMgr->GetSpellInfo(24932), 0)))
return;
break;
}
}
if (m_originalCaster && damage > 0 && apply_direct_bonus)