mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[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:
parent
b4fc5a1789
commit
9f6dfa282f
2 changed files with 6 additions and 1 deletions
|
|
@ -11854,9 +11854,14 @@ bool Unit::HandleMeandingAuraProc( Aura* triggeredByAura )
|
||||||
mod->mask = spellProto->SpellFamilyFlags;
|
mod->mask = spellProto->SpellFamilyFlags;
|
||||||
mod->mask2 = spellProto->SpellFamilyFlags2;
|
mod->mask2 = spellProto->SpellFamilyFlags2;
|
||||||
|
|
||||||
|
// remove before apply next (locked against deleted)
|
||||||
|
triggeredByAura->SetInUse(true);
|
||||||
|
RemoveAurasByCasterSpell(spellProto->Id,caster->GetGUID());
|
||||||
|
|
||||||
caster->AddSpellMod(mod, true);
|
caster->AddSpellMod(mod, true);
|
||||||
CastCustomSpell(target,spellProto->Id,&heal,NULL,NULL,true,NULL,triggeredByAura,caster->GetGUID());
|
CastCustomSpell(target,spellProto->Id,&heal,NULL,NULL,true,NULL,triggeredByAura,caster->GetGUID());
|
||||||
caster->AddSpellMod(mod, false);
|
caster->AddSpellMod(mod, false);
|
||||||
|
triggeredByAura->SetInUse(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8352"
|
#define REVISION_NR "8353"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue