fix(Core/Unit): Skip evade aura removal for player-owned creatures (#25311)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com> Co-authored-by: Rushor <PBienati@web.de>
This commit is contained in:
parent
0b9395531b
commit
263802381c
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue