From 5f8333188a1dd9b0d307aa8b971f63d76dcd7daa Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 22 Sep 2020 16:19:22 -0400 Subject: [PATCH] Core/GameObjects: trigger npcs that are summoned for gameobject casting will now inherit their gameobject's phase shift as well Port From (https://github.com/TrinityCore/TrinityCore/commit/ed79d904e02d05144f8c5953249da9d5acf01218) --- Source/Game/Entities/GameObject/GameObject.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Game/Entities/GameObject/GameObject.cs b/Source/Game/Entities/GameObject/GameObject.cs index 3761a8374..bdd19529b 100644 --- a/Source/Game/Entities/GameObject/GameObject.cs +++ b/Source/Game/Entities/GameObject/GameObject.cs @@ -2042,6 +2042,8 @@ namespace Game.Entities // remove immunity flags, to allow spell to target anything trigger.RemoveUnitFlag(UnitFlags.ImmuneToNpc | UnitFlags.ImmuneToPc); + PhasingHandler.InheritPhaseShift(trigger, this); + Unit owner = GetOwner(); if (owner) {