Core/Aura: Fixed thread-unsafe return from Aura::GetCaster()
Port From (https://github.com/TrinityCore/TrinityCore/commit/58ce0904aa08411570bb600c1604dc1fc0d01ac3)
This commit is contained in:
@@ -405,9 +405,6 @@ namespace Game.Spells
|
||||
{
|
||||
if (m_owner.GetGUID() == m_casterGuid)
|
||||
return GetUnitOwner();
|
||||
AuraApplication aurApp = GetApplicationOfTarget(m_casterGuid);
|
||||
if (aurApp != null)
|
||||
return aurApp.GetTarget();
|
||||
|
||||
return Global.ObjAccessor.GetUnit(m_owner, m_casterGuid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user