Core/Spells: Send OriginalCastId in SMSG_SPELL_START and SMSG_SPELL_GO for triggered spells in 'game' project

This commit is contained in:
Shauren
2021-10-03 16:36:39 +02:00
parent 0146eefee4
commit 555b2d40ec
11 changed files with 170 additions and 96 deletions

View File

@@ -2638,7 +2638,7 @@ void WorldObject::CastSpell(SpellCastTargets const& targets, uint32 spellId, Cas
return;
}
Spell* spell = new Spell(this, info, args.TriggerFlags, args.OriginalCaster);
Spell* spell = new Spell(this, info, args.TriggerFlags, args.OriginalCaster, args.OriginalCastId);
for (auto const& pair : args.SpellValueOverrides)
spell->SetSpellValue(pair.first, pair.second);