Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getAdjustedHitStat return max for all stats if ATTACKS_CANT_MISS #585

Merged
merged 8 commits into from
Feb 8, 2022
6 changes: 3 additions & 3 deletions src/net/sourceforge/kolmafia/session/EquipmentManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -2033,12 +2033,12 @@ public static final Stat getHitStatType() {
*/
public static final int getAdjustedHitStat() {
int hitStat;
if (KoLCharacter.currentBooleanModifier(Modifiers.ATTACKS_CANT_MISS)) {
return Integer.MAX_VALUE;
}
switch (getHitStatType()) {
default:
case MUSCLE:
if (KoLCharacter.currentBooleanModifier(Modifiers.ATTACKS_CANT_MISS)) {
return Integer.MAX_VALUE;
}
hitStat = KoLCharacter.getAdjustedMuscle();
if (Modifiers.unarmed && KoLCharacter.hasSkill("Master of the Surprising Fist")) {
hitStat += 20;
Expand Down