Core/Spells: CastSpell Cleanup

Port From (https://github.com/TrinityCore/TrinityCore/commit/)
This commit is contained in:
hondacrx
2021-04-18 18:42:11 -04:00
parent b1ea7212f3
commit d0faa12ef6
45 changed files with 775 additions and 632 deletions
+6 -1
View File
@@ -17,6 +17,7 @@
using Framework.Constants;
using Game.Entities;
using Game.Spells;
using System.Collections.Generic;
namespace Game.AI
@@ -128,7 +129,11 @@ namespace Game.AI
public override void IsSummonedBy(Unit summoner)
{
if (me.m_spells[0] != 0)
me.CastSpell(me, me.m_spells[0], false, null, null, summoner.GetGUID());
{
CastSpellExtraArgs extra = new();
extra.OriginalCaster = summoner.GetGUID();
me.CastSpell(me, me.m_spells[0], extra);
}
}
}
}