Core/Scripts: Integrate new ActionResultSetter with movement generators and spells

(cherry picked from commit b265c49977)
This commit is contained in:
Shauren
2024-04-06 20:50:59 +02:00
committed by Ovahlord
parent 3438404575
commit 093546f22c
26 changed files with 262 additions and 95 deletions
@@ -2965,6 +2965,8 @@ SpellCastResult WorldObject::CastSpell(CastSpellTargetArg const& targets, uint32
}
spell->m_customArg = args.CustomArg;
spell->m_scriptResult = args.ScriptResult;
spell->m_scriptWaitsForSpellHit = args.ScriptWaitsForSpellHit;
return spell->prepare(*targets.Targets, args.TriggeringAura);
}