mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spells: Deep freeze should do damage instead of freezing on targets with permanent stun immunity.
This commit is contained in:
@@ -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');
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user