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 -1
View File
@@ -5204,7 +5204,7 @@ namespace Game.Entities
else if (apply)
{
CastSpellExtraArgs args = new(TriggerCastFlags.FullMask);
args.CastItem = artifact;
args.SetCastItem(artifact);
if (artifactPowerRank.AuraPointsOverride != 0)
{
foreach (var spellEffectInfo in spellInfo.GetEffects())