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:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user