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:
blinkysc 2026-03-30 11:03:32 -05:00 committed by GitHub
parent 0b9395531b
commit 263802381c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();