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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user