Core/Aura: Fixed thread-unsafe return from Aura::GetCaster()

Port From (https://github.com/TrinityCore/TrinityCore/commit/58ce0904aa08411570bb600c1604dc1fc0d01ac3)
This commit is contained in:
hondacrx
2022-05-24 12:50:07 -04:00
parent 85766a168c
commit bf0c12ab0c
-3
View File
@@ -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);
}