[8353] Prevent reporting about wrong stacking in log for spell 33076 and ranks.

Using new delayed aura deleted functionality remove source aura before cast triggred aura.
This commit is contained in:
VladimirMangos 2009-08-12 05:17:37 +04:00
parent b4fc5a1789
commit 9f6dfa282f
2 changed files with 6 additions and 1 deletions

View file

@ -11854,9 +11854,14 @@ bool Unit::HandleMeandingAuraProc( Aura* triggeredByAura )
mod->mask = spellProto->SpellFamilyFlags;
mod->mask2 = spellProto->SpellFamilyFlags2;
// remove before apply next (locked against deleted)
triggeredByAura->SetInUse(true);
RemoveAurasByCasterSpell(spellProto->Id,caster->GetGUID());
caster->AddSpellMod(mod, true);
CastCustomSpell(target,spellProto->Id,&heal,NULL,NULL,true,NULL,triggeredByAura,caster->GetGUID());
caster->AddSpellMod(mod, false);
triggeredByAura->SetInUse(false);
}
}
}