Core/Spells: fixed mage Frostburn mastery

This commit is contained in:
Aokromes committed 2017-11-30 13:03:09 +00:00
commit 72550d3002
2 files changed
+11

No files matched your search

@@ -0,0 +1,4 @@
--
DELETE FROM `spell_proc` WHERE `SpellId`= 76613;
INSERT INTO `spell_proc` (`SpellId`, `SpellPhaseMask`, `AttributesMask`) VALUES
(76613, 0x00000002, 0x0000010 | 0x0000020);
+7
View File
@@ -6692,6 +6692,13 @@ float Unit::SpellDamagePctDone(Unit* victim, SpellInfo const* spellProto, Damage
switch (spellProto->SpellFamilyName)
{
case SPELLFAMILY_MAGE:
// Mastery: Frostburn
if (AuraEffect* aurEff = GetAuraEffect(76613, 0))
if (victim->HasAuraState(AURA_STATE_FROZEN))
if (aurEff->IsAffectingSpell(spellProto))
AddPct(DoneTotalMod, aurEff->GetAmount());
// Ice Lance
if (spellProto->SpellIconID == 186)
if (victim->HasAuraState(AURA_STATE_FROZEN, spellProto, this))