Core/Spells: Pass cast item level to triggered spells

Port From (https://github.com/TrinityCore/TrinityCore/commit/8e2d1e328ebec60c76d65651b268ec3ad2ce26fc)
This commit is contained in:
hondacrx
2022-05-05 10:21:47 -04:00
parent fd9501dbe0
commit add1e659bf
7 changed files with 44 additions and 38 deletions
+1 -2
View File
@@ -370,8 +370,7 @@ namespace Scripts.Spells.Quest
return;
uint spellId = RandomHelper.randChance(20) ? SpellIds.BendingShinbone1 : SpellIds.BendingShinbone2;
caster.CastSpell(caster, spellId, new CastSpellExtraArgs(TriggerCastFlags.FullMask)
.SetOriginalCastId(GetSpell().m_castId));
caster.CastSpell(caster, spellId, new CastSpellExtraArgs(GetSpell()));
}
public override void Register()