Core/Spells: Handle GAMEOBJECT_TYPE_UI_LINK spellFocus
Port From (https://github.com/TrinityCore/TrinityCore/commit/97afa3a609923bd9b7c0e9cfc52c29ba9dbfe35d)
This commit is contained in:
@@ -2247,16 +2247,13 @@ namespace Game.Maps
|
||||
|
||||
public bool Invoke(GameObject go)
|
||||
{
|
||||
if (go.GetGoInfo().type != GameObjectTypes.SpellFocus)
|
||||
return false;
|
||||
|
||||
if (go.GetGoInfo().SpellFocus.spellFocusType != i_focusId)
|
||||
if (go.GetGoInfo().GetSpellFocusType() != i_focusId)
|
||||
return false;
|
||||
|
||||
if (!go.IsSpawned())
|
||||
return false;
|
||||
|
||||
float dist = go.GetGoInfo().SpellFocus.radius / 2.0f;
|
||||
float dist = go.GetGoInfo().GetSpellFocusRadius() / 2.0f;
|
||||
|
||||
return go.IsWithinDistInMap(i_unit, dist);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user