Core/Spell: Remove all raid auras on party leave (#17663)
Core/Spell: Remove all raid auras on party leave
This commit is contained in:
1 parent
b797a5edbc
commit
c406fb2a73
5 files changed
+51
-1
No files matched your search
@@ -4064,6 +4064,20 @@ void Unit::RemoveAllAurasExceptType(AuraType type1, AuraType type2)
|
||||
}
|
||||
}
|
||||
|
||||
void Unit::RemoveAllGroupBuffsFromCaster(ObjectGuid casterGUID)
|
||||
{
|
||||
for (AuraMap::iterator iter = m_ownedAuras.begin(); iter != m_ownedAuras.end();)
|
||||
{
|
||||
Aura* aura = iter->second;
|
||||
if (aura->GetCasterGUID() == casterGUID && aura->GetSpellInfo()->IsGroupBuff())
|
||||
{
|
||||
RemoveOwnedAura(iter);
|
||||
continue;
|
||||
}
|
||||
++iter;
|
||||
}
|
||||
}
|
||||
|
||||
void Unit::DelayOwnedAuras(uint32 spellId, ObjectGuid caster, int32 delaytime)
|
||||
{
|
||||
AuraMapBoundsNonConst range = m_ownedAuras.equal_range(spellId);
|
||||
|
||||
Reference in new issue
Block a user