Core/Spells: Allow implicit targeting of serverside WorldObjects
Port From (https://github.com/TrinityCore/TrinityCore/commit/5d5ca30b232586ad378671bf0ac8407495dea188)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user