mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
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:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user