*Remove Death runes from Reaping/Blood of the North/Death Rune Mastery when talent aura is removed.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-01-23 10:33:16 +01:00
parent 216d32e8a7
commit d9b38250ff
+15
View File
@@ -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