forked from mirror/azerothcore-wotlk
fix(Core/Unit): Skip evade aura removal for player-owned creatures (#25311)
Co-authored-by: blinkysc <[email protected]> Co-authored-by: Rushor <[email protected]>
This commit is contained in:
co-authored by
blinkysc
Rushor
parent
0b9395531b
commit
263802381c
@@ -5697,6 +5697,9 @@ void Unit::RemoveAllAurasExceptType(AuraType type)
|
||||
// Xinef: We should not remove passive auras on evade, if npc has player owner (scripted one cast auras)
|
||||
void Unit::RemoveEvadeAuras()
|
||||
{
|
||||
if (IsCharmedOwnedByPlayerOrPlayer())
|
||||
return;
|
||||
|
||||
for (AuraApplicationMap::iterator iter = m_appliedAuras.begin(); iter != m_appliedAuras.end();)
|
||||
{
|
||||
Aura const* aura = iter->second->GetBase();
|
||||
|
||||
Reference in New Issue
Block a user