Skip to content

Commit c6fb439

Browse files
authored
Core/Unit: Fix DualWield Off-hand hit penalty (#30444)
* Offhand attacks that occur while on-next-hit abilities such as Heroic Strike are queued do not suffer the dual wield to-hit penalty.
1 parent a93b115 commit c6fb439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/game/Entities/Unit/Unit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12128,8 +12128,8 @@ float Unit::MeleeSpellMissChance(Unit const* victim, WeaponAttackType attType, i
1212812128
//calculate miss chance
1212912129
float missChance = victim->GetUnitMissChance();
1213012130

12131-
// melee attacks while dual wielding have +19% chance to miss
12132-
if (!spellId && haveOffhandWeapon())
12131+
// Check if dual wielding, add additional miss penalty - when mainhand has on next swing spell, offhand doesnt suffer penalty
12132+
if (!spellId && haveOffhandWeapon() && attType != RANGED_ATTACK && !m_currentSpells[CURRENT_MELEE_SPELL])
1213312133
missChance += 19.0f;
1213412134

1213512135
// bonus from skills is 0.04%

0 commit comments

Comments
 (0)