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)
This commit is contained in:
hondacrx
2020-09-22 16:19:22 -04:00
parent 4e076523a6
commit 5f8333188a
@@ -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)
{