Core/Aura: Fixed thread-unsafe return from Aura::GetCaster() (#25524)
(cherry picked from commit 53cb57b864d6b67bd2807cdb1eff93487502fb73)
This commit is contained in:
@@ -513,8 +513,6 @@ Unit* Aura::GetCaster() const
|
||||
{
|
||||
if (GetOwner()->GetGUID() == GetCasterGUID())
|
||||
return GetUnitOwner();
|
||||
if (AuraApplication const* aurApp = GetApplicationOfTarget(GetCasterGUID()))
|
||||
return aurApp->GetTarget();
|
||||
|
||||
return ObjectAccessor::GetUnit(*GetOwner(), GetCasterGUID());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user