From f0857afa46395f6589363b12d38e1899fd408142 Mon Sep 17 00:00:00 2001 From: Nevan Date: Mon, 3 Aug 2009 00:46:16 +0200 Subject: *Fix Glyph of Polymorph --HG-- branch : trunk --- src/game/SpellAuras.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index b3b66712e94..87bb8b326a7 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -944,6 +944,15 @@ void Aura::ApplyAllModifiers(bool apply, bool Real) void Aura::HandleAuraSpecificMods(bool apply) { + // Glyph of Polymorph ( 56375 - Dot Remover ) + // Polymorph + if (apply && GetCaster()->HasAura(56375) && (m_spellProto->SpellFamilyName == 3 && m_spellProto->SpellFamilyFlags[0] & 0x01000000)) + { + m_target->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE); + m_target->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE_PERCENT); + return; + } + // Aura Mastery Triggered Spell Handler // If apply Concentration Aura -> trigger -> apply Aura Mastery Immunity // If remove Concentration Aura -> trigger -> remove Aura Mastery Immunity -- cgit v1.2.3