mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Aura: Fixed thread-unsafe return from Aura::GetCaster() (#25524)
(cherry picked from commit 53cb57b864)
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