diff options
author | QAston <none@none> | 2010-01-23 10:33:16 +0100 |
---|---|---|
committer | QAston <none@none> | 2010-01-23 10:33:16 +0100 |
commit | d9b38250ff381300f53e0a7f3942ec76012717d3 (patch) | |
tree | 7b00a9f3336722d9dd1db797ccb1968402acfcb7 /src | |
parent | 216d32e8a76b65fb8d661d7e5a200edd637b8dd9 (diff) |
*Remove Death runes from Reaping/Blood of the North/Death Rune Mastery when talent aura is removed.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellAuras.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
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 |