fix(Core/Unit): DualWield Off-hand hit penalty (#12906)
This commit is contained in:
@@ -18561,8 +18561,11 @@ float Unit::MeleeSpellMissChance(Unit const* victim, WeaponAttackType attType, i
|
|||||||
//calculate miss chance
|
//calculate miss chance
|
||||||
float missChance = victim->GetUnitMissChance(attType);
|
float missChance = victim->GetUnitMissChance(attType);
|
||||||
|
|
||||||
if (!spellId && haveOffhandWeapon())
|
// Check if dual wielding, add additional miss penalty - when mainhand has on next swing spell, offhand doesnt suffer penalty
|
||||||
|
if (!spellId && (attType != RANGED_ATTACK) && haveOffhandWeapon() && (!m_currentSpells[CURRENT_MELEE_SPELL] || !m_currentSpells[CURRENT_MELEE_SPELL]->IsNextMeleeSwingSpell()))
|
||||||
|
{
|
||||||
missChance += 19;
|
missChance += 19;
|
||||||
|
}
|
||||||
|
|
||||||
// bonus from skills is 0.04%
|
// bonus from skills is 0.04%
|
||||||
//miss_chance -= skillDiff * 0.04f;
|
//miss_chance -= skillDiff * 0.04f;
|
||||||
|
|||||||
Reference in New Issue
Block a user