Core/Spells: Removed duplicated check again followup 3a0417f7128292995a4085a0114ed59fbfa64325

to send some info to client
This commit is contained in:
Keader authored and Aokromes committed 2017-06-01 14:05:32 +02:00
1 parent 52551be039
commit 4292ac7039
1 file changed
+1 -4
+1 -4
View File
@@ -2822,12 +2822,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;