From d9b38250ff381300f53e0a7f3942ec76012717d3 Mon Sep 17 00:00:00 2001 From: QAston Date: Sat, 23 Jan 2010 10:33:16 +0100 Subject: *Remove Death runes from Reaping/Blood of the North/Death Rune Mastery when talent aura is removed. --HG-- branch : trunk --- src/game/SpellAuras.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src') diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index ebdd2747181..95a70a545e7 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -1130,6 +1130,21 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster, } break; case SPELLFAMILY_DEATHKNIGHT: + // Blood of the North + // Reaping + // Death Rune Mastery + if (GetSpellProto()->SpellIconID == 3041 || GetSpellProto()->SpellIconID == 22 || GetSpellProto()->SpellIconID == 2622) + { + if (!GetEffect(0) || GetEffect(0)->GetAuraType() != SPELL_AURA_PERIODIC_DUMMY) + break; + if (target->GetTypeId() != TYPEID_PLAYER) + break; + if(((Player*)target)->getClass() != CLASS_DEATH_KNIGHT) + break; + + // aura removed - remove death runes + ((Player*)target)->RemoveRunesByAuraEffect(GetEffect(0)); + } switch(GetId()) { case 50514: // Summon Gargoyle -- cgit v1.2.3