Skip to content

Commit

Permalink
Merge pull request #3882 from TheGroxEmpire/master
Browse files Browse the repository at this point in the history
Warrior DPS crit cap will disregard dual wield miss
  • Loading branch information
TheGroxEmpire authored Oct 15, 2023
2 parents 0a3db06 + c6e7550 commit ac1a9a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/core/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,8 @@ export class Player<SpecType extends Spec> {
const glancing = 24.0;

const hasOffhandWeapon = this.getGear().getEquippedItem(ItemSlot.ItemSlotOffHand)?.item.weaponSpeed !== undefined;
const meleeHitCap = hasOffhandWeapon ? 27.0 : 8.0;
// Due to warrior HS bug, hit cap for crit cap calculation should be 8% instead of 27%
const meleeHitCap = hasOffhandWeapon && this.spec != Spec.SpecWarrior ? 27.0 : 8.0;
const expertiseCap = this.getInFrontOfTarget() ? 20.5 : 6.5;

const remainingMeleeHitCap = Math.max(meleeHitCap - meleeHit, 0.0);
Expand Down

0 comments on commit ac1a9a8

Please sign in to comment.