Core/GameObjects: trigger npcs that are summoned for gameobject casts will now inherit the gameobject's phase shift as well to hit intended phased targets

This commit is contained in:
Ovahlord
2020-09-11 16:23:42 +02:00
parent 2aa05b951b
commit 40cda24dc2

View File

@@ -2071,6 +2071,7 @@ void GameObject::CastSpell(Unit* target, uint32 spellId, TriggerCastFlags trigge
// remove immunity flags, to allow spell to target anything
trigger->SetImmuneToAll(false);
PhasingHandler::InheritPhaseShift(trigger, this);
if (Unit* owner = GetOwner())
{