Core/Spells: Implemented summoning a personal gameobject effect

Port From (https://github.com/TrinityCore/TrinityCore/commit/e601c6d1f9b9743e92e9562abd9f2d24d9aaf175)
This commit is contained in:
hondacrx
2021-01-26 19:27:45 -05:00
parent 39f0ecfc83
commit b22dc3bc8a
5 changed files with 64 additions and 3 deletions
@@ -1147,6 +1147,11 @@ namespace Game.Entities
}
}
GameObject go = obj.ToGameObject();
if ( go != null)
if (go.IsVisibleByUnitOnly() && GetGUID() != go.GetVisibleByUnitOnly())
return false;
if (viewpoint == null)
viewpoint = this;