Core/Spells: Removed duplicated check again followup 3a0417f712

to send some info to client
This commit is contained in:
Keader
2017-06-01 09:08:01 -03:00
committed by GitHub
parent 3a0417f712
commit ed43883160

View File

@@ -3059,12 +3059,9 @@ void Spell::EffectTaunt(SpellEffIndex /*effIndex*/)
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
return;
if (!unitTarget)
return;
// this effect use before aura Taunt apply for prevent taunt already attacking target
// for spell as marked "non effective at already attacking target"
if (!unitTarget->CanHaveThreatList() || unitTarget->GetVictim() == m_caster)
if (!unitTarget || !unitTarget->CanHaveThreatList() || unitTarget->GetVictim() == m_caster)
{
SendCastResult(SPELL_FAILED_DONT_REPORT);
return;