mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-07 15:28:02 +00:00
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:
@@ -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