Core/Spells: Allow implicit targeting of serverside WorldObjects

Port From (https://github.com/TrinityCore/TrinityCore/commit/5d5ca30b232586ad378671bf0ac8407495dea188)
This commit is contained in:
hondacrx
2023-03-14 04:23:38 -04:00
parent 6905c69cfb
commit bc453f7198
5 changed files with 14 additions and 14 deletions
@@ -1279,12 +1279,12 @@ namespace Game.Entities
}
}
public override bool IsNeverVisibleFor(WorldObject seer)
public override bool IsNeverVisibleFor(WorldObject seer, bool allowServersideObjects = false)
{
if (base.IsNeverVisibleFor(seer))
return true;
if (GetGoInfo().GetServerOnly() != 0)
if (GetGoInfo().GetServerOnly() != 0 && !allowServersideObjects)
return true;
if (GetDisplayId() == 0)