Core/Conditions: CONDITION_NEAR_CREATURE will exclude personal spawns that aren't the target's owner (#26102)

# Conflicts:
#	src/server/game/Grids/Notifiers/GridNotifiers.h
This commit is contained in:
Matan Shukry authored and Ovahlord committed 2021-02-19 13:04:08 +01:00
1 parent abae5e4596
commit 73efb99005
4 files changed
+14 -4

No files matched your search

+2 -3
View File
@@ -1770,9 +1770,8 @@ bool WorldObject::CanSeeOrDetect(WorldObject const* obj, bool ignoreStealth, boo
viewpoint = player->GetViewpoint();
if (Creature const* creature = obj->ToCreature())
if (TempSummon const* tempSummon = creature->ToTempSummon())
if (tempSummon->IsVisibleBySummonerOnly() && GetGUID() != tempSummon->GetSummonerGUID())
return false;
if (TempSummon::IsPersonalSummonOfAnotherPlayer(creature, GetGUID()))
return false;
}
if (GameObject const* go = obj->ToGameObject())