Scripts/Spells: Fixed crash in spell_sha_mastery_elemental_overload

Port From (https://github.com/TrinityCore/TrinityCore/commit/db8504426796ce39f1871aa1871bae10e0408f9f)
This commit is contained in:
hondacrx
2023-01-23 00:04:38 -05:00
parent 1326e8e016
commit 80a10f55bc
+5
View File
@@ -1171,6 +1171,11 @@ namespace Scripts.Spells.Shaman
caster.m_Events.AddEventAtOffset(() =>
{
if (targets.Targets == null)
return;
targets.Targets.Update(caster);
CastSpellExtraArgs args = new();
args.OriginalCastId = originalCastId;
caster.CastSpell(targets, overloadSpellId, args);