Core/GameObjects: Use serverOnly property of GameObjectTemplate for all types that have it, not just spell focus
This commit is contained in:
1 parent
ed43e578f1
commit
f5f6dbfa3e
2 files changed
+13
-1
No files matched your search
@@ -1549,7 +1549,7 @@ bool GameObject::IsNeverVisible() const
|
||||
if (WorldObject::IsNeverVisible())
|
||||
return true;
|
||||
|
||||
if (GetGoType() == GAMEOBJECT_TYPE_SPELL_FOCUS && GetGOInfo()->spellFocus.serverOnly == 1)
|
||||
if (GetGOInfo()->GetServerOnly())
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user