Core/Conditions: CONDITION_NEAR_CREATURE will exclude personal spawns that aren't the target's owner
Port From (https://github.com/TrinityCore/TrinityCore/commit/d2641c4924022369d4af595925bf04d034db5d72)
This commit is contained in:
@@ -1139,12 +1139,8 @@ namespace Game.Entities
|
||||
|
||||
Creature creature = obj.ToCreature();
|
||||
if (creature)
|
||||
{
|
||||
TempSummon tempSummon = creature.ToTempSummon();
|
||||
if (tempSummon)
|
||||
if (tempSummon.IsVisibleBySummonerOnly() && GetGUID() != tempSummon.GetSummonerGUID())
|
||||
return false;
|
||||
}
|
||||
if (TempSummon.IsPersonalSummonOfAnotherPlayer(creature, GetGUID()))
|
||||
return false;
|
||||
}
|
||||
|
||||
GameObject go = obj.ToGameObject();
|
||||
|
||||
Reference in New Issue
Block a user