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

View File

@@ -0,0 +1,7 @@
DELETE FROM `spell_linked_spell` WHERE `spell_trigger`=44572;
INSERT INTO `spell_linked_spell` VALUES
(44572,71757,0, 'Deep Freeze - Damage Proc');
DELETE FROM `spell_bonus_data` WHERE `entry`=71757;
INSERT INTO `spell_bonus_data` (`entry`,`direct_bonus`,`dot_bonus`,`ap_bonus`,`ap_dot_bonus`,`comments`) VALUES
(71757,2.143,0,0,0, 'Mage - Deep Freeze');

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)