Core/Spell: fix SendSpellMiss requiring caster Unit

(cherry picked from commit 7f947646f9)
This commit is contained in:
ariel-
2018-03-10 19:51:36 -03:00
committed by Shauren
parent a2ea26816e
commit 60ff73eeba
5 changed files with 12 additions and 12 deletions

View File

@@ -2380,7 +2380,7 @@ void Spell::TargetInfo::PreprocessTarget(Spell* spell)
if (missInfo != SPELL_MISS_NONE)
{
if (missInfo != SPELL_MISS_MISS)
spell->m_caster->ToUnit()->SendSpellMiss(unit, spell->m_spellInfo->Id, missInfo);
spell->m_caster->SendSpellMiss(unit, spell->m_spellInfo->Id, missInfo);
spell->m_damage = 0;
spell->m_healing = 0;
_spellHitTarget = nullptr;