mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Core/GameObject: GAMEOBJECT_TYPE_SPELL_FOCUS serverOnly == 1 are now invisible (only server)
This commit is contained in:
@@ -958,6 +958,17 @@ void GameObject::SaveRespawnTime()
|
||||
GetMap()->SaveGORespawnTime(m_DBTableGuid, m_respawnTime);
|
||||
}
|
||||
|
||||
bool GameObject::IsNeverVisible() const
|
||||
{
|
||||
if (WorldObject::IsNeverVisible())
|
||||
return true;
|
||||
|
||||
if (GetGoType() == GAMEOBJECT_TYPE_SPELL_FOCUS && GetGOInfo()->spellFocus.serverOnly == 1)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool GameObject::IsAlwaysVisibleFor(WorldObject const* seer) const
|
||||
{
|
||||
if (WorldObject::IsAlwaysVisibleFor(seer))
|
||||
|
||||
@@ -778,6 +778,8 @@ class GameObject : public WorldObject, public GridObject<GameObject>, public Map
|
||||
|
||||
void TriggeringLinkedGameObject(uint32 trapEntry, Unit* target);
|
||||
|
||||
bool IsNeverVisible() const override;
|
||||
|
||||
bool IsAlwaysVisibleFor(WorldObject const* seer) const;
|
||||
bool IsInvisibleDueToDespawn() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user