fix(Core/Unit): Exclude Sword Specialization and Hack and Slash from … (#13706)

* fix(Core/Unit): Exclude Sword Specialization and Hack and Slash from the extra attack range check

* fix  logic
This commit is contained in:
Skjalf
2022-11-05 15:04:02 -03:00
committed by GitHub
parent 8b7fb759c2
commit bb9e80ded1
2 changed files with 9 additions and 2 deletions

View File

@@ -469,7 +469,8 @@ void Unit::Update(uint32 p_time)
extraAttacksTargets.erase(itr);
if (Unit* victim = ObjectAccessor::GetUnit(*this, targetGuid))
{
if (victim->IsWithinMeleeRange(this))
if (_lastExtraAttackSpell == SPELL_SWORD_SPECIALIZATION || _lastExtraAttackSpell == SPELL_HACK_AND_SLASH
|| victim->IsWithinMeleeRange(this))
{
HandleProcExtraAttackFor(victim, count);
}
@@ -9376,7 +9377,7 @@ bool Unit::HandleProcTriggerSpell(Unit* victim, uint32 damage, AuraEffect* trigg
// Patch 2.2.0 Sword Specialization (Warrior, Rogue) extra attack can no longer proc additional extra attacks
// 3.3.5 Sword Specialization (Warrior), Hack and Slash (Rogue)
if (lastExtraAttackSpell == 16459 || lastExtraAttackSpell == 66923)
if (lastExtraAttackSpell == SPELL_SWORD_SPECIALIZATION || lastExtraAttackSpell == SPELL_HACK_AND_SLASH)
{
return false;
}