Core/Spells: Removed duplicated check again followup 3a0417f712

to send some info to client

(cherry picked from commit ed43883160)
This commit is contained in:
Keader
2017-06-01 09:08:01 -03:00
committed by funjoker
parent 19602c2e83
commit c9c178db19

View File

@@ -2722,12 +2722,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;