Core/Spells: Removed duplicated check

unitTarget was checked twice in Spell::EffectTaunt

(cherry picked from commit 3a0417f712)
This commit is contained in:
Keader
2017-06-01 09:04:40 -03:00
committed by funjoker
parent 1881088744
commit 19602c2e83

View File

@@ -2727,8 +2727,7 @@ void Spell::EffectTaunt(SpellEffIndex /*effIndex*/)
// 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 || !unitTarget->CanHaveThreatList()
|| unitTarget->GetVictim() == m_caster)
if (!unitTarget->CanHaveThreatList() || unitTarget->GetVictim() == m_caster)
{
SendCastResult(SPELL_FAILED_DONT_REPORT);
return;