mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spells: Removed duplicated check
unitTarget was checked twice in Spell::EffectTaunt
(cherry picked from commit 3a0417f712)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user