Core/Spell: fix SendSpellMiss requiring caster Unit

Port From (https://github.com/TrinityCore/TrinityCore/commit/60ff73eeba93c7f97abff0eeb504cb4b5ff8a6cd)
This commit is contained in:
hondacrx
2021-09-08 23:26:14 -04:00
parent 7770ef3f5e
commit 7cfe3c0021
3 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -7700,7 +7700,7 @@ namespace Game.Spells
if (missInfo != SpellMissInfo.None)
{
if (missInfo != SpellMissInfo.Miss)
spell.GetCaster().ToUnit().SendSpellMiss(unit, spell.m_spellInfo.Id, missInfo);
spell.GetCaster().SendSpellMiss(unit, spell.m_spellInfo.Id, missInfo);
spell.m_damage = 0;
spell.m_healing = 0;
_spellHitTarget = null;