Core/Spells: Frostfire Bolt's slow effect will no longer stack

This commit is contained in:
Ovahlord
2019-11-24 10:47:09 +01:00
parent 38e7694dbc
commit debff42e62

View File

@@ -2281,11 +2281,20 @@ class spell_mage_frostfire_bolt : public SpellScript
void HandleGlyphSlow(SpellEffIndex effIndex)
{
if (Unit* caster = GetCaster())
if (caster->GetDummyAuraEffect(SPELLFAMILY_MAGE, ICON_MAGE_GLYPH_OF_FROSTFIRE, EFFECT_2))
if (Aura* aura = GetHitAura())
if (AuraEffect* effect = aura->GetEffect(effIndex))
effect->SetAmount(0);
Unit* caster = GetCaster();
if (!caster)
return;
if (Aura* aura = GetHitAura())
{
if (AuraEffect* effect = aura->GetEffect(effIndex))
{
if (caster->GetDummyAuraEffect(SPELLFAMILY_MAGE, ICON_MAGE_GLYPH_OF_FROSTFIRE, EFFECT_2))
effect->SetAmount(0);
else
effect->SetAmount(GetSpellInfo()->Effects[effIndex].CalcValue());
}
}
}
void HandleGlyphDot(SpellEffIndex effIndex)