Core/Spells: Handle GAMEOBJECT_TYPE_UI_LINK spellFocus
Port From (https://github.com/TrinityCore/TrinityCore/commit/97afa3a609923bd9b7c0e9cfc52c29ba9dbfe35d)
This commit is contained in:
@@ -517,6 +517,32 @@ namespace Game.Entities
|
||||
}
|
||||
}
|
||||
|
||||
public uint GetSpellFocusType()
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case GameObjectTypes.SpellFocus:
|
||||
return SpellFocus.spellFocusType;
|
||||
case GameObjectTypes.UILink:
|
||||
return UILink.spellFocusType;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public uint GetSpellFocusRadius()
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case GameObjectTypes.SpellFocus:
|
||||
return SpellFocus.radius;
|
||||
case GameObjectTypes.UILink:
|
||||
return UILink.radius;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void InitializeQueryData()
|
||||
{
|
||||
QueryData = new QueryGameObjectResponse();
|
||||
|
||||
Reference in New Issue
Block a user