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)
|
// Xinef: We should not remove passive auras on evade, if npc has player owner (scripted one cast auras)
|
||||||
void Unit::RemoveEvadeAuras()
|
void Unit::RemoveEvadeAuras()
|
||||||
{
|
{
|
||||||
|
if (IsCharmedOwnedByPlayerOrPlayer())
|
||||||
|
return;
|
||||||
|
|
||||||
for (AuraApplicationMap::iterator iter = m_appliedAuras.begin(); iter != m_appliedAuras.end();)
|
for (AuraApplicationMap::iterator iter = m_appliedAuras.begin(); iter != m_appliedAuras.end();)
|
||||||
{
|
{
|
||||||
Aura const* aura = iter->second->GetBase();
|
Aura const* aura = iter->second->GetBase();
|
||||||
|
|||||||
Reference in New Issue
Block a user