fix(Core/Unit): Check if the unit is within melee range before proces… (#13697)
fix(Core/Unit): Check if the unit is within melee range before processing extra attack procs
This commit is contained in:
@@ -469,7 +469,10 @@ void Unit::Update(uint32 p_time)
|
|||||||
extraAttacksTargets.erase(itr);
|
extraAttacksTargets.erase(itr);
|
||||||
if (Unit* victim = ObjectAccessor::GetUnit(*this, targetGuid))
|
if (Unit* victim = ObjectAccessor::GetUnit(*this, targetGuid))
|
||||||
{
|
{
|
||||||
HandleProcExtraAttackFor(victim, count);
|
if (victim->IsWithinMeleeRange(this))
|
||||||
|
{
|
||||||
|
HandleProcExtraAttackFor(victim, count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_lastExtraAttackSpell = 0;
|
_lastExtraAttackSpell = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user