Core/Spells: Implemented summoning a personal gameobject effect (#25917)

# Conflicts:
#	src/server/game/Entities/GameObject/GameObject.cpp
#	src/server/game/Entities/GameObject/GameObject.h
#	src/server/game/Miscellaneous/SharedDefines.h
#	src/server/game/Spells/SpellInfo.cpp
This commit is contained in:
Matan Shukry authored and Ovahlord committed 2021-02-19 13:01:10 +01:00
1 parent 63f2dcd05e
commit abae5e4596
6 files changed
+62 -3

No files matched your search

@@ -1775,6 +1775,10 @@ bool WorldObject::CanSeeOrDetect(WorldObject const* obj, bool ignoreStealth, boo
return false;
}
if (GameObject const* go = obj->ToGameObject())
if (go->IsVisibleByUnitOnly() && GetGUID() != go->GetVisibleByUnitOnly())
return false;
if (!viewpoint)
viewpoint = this;