Skip to content

Commit

Permalink
getAdjustedHitStat return max for all stats if ATTACKS_CANT_MISS (#585)
Browse files Browse the repository at this point in the history
* Make piranha plant monster NOCOPY

* Crystal Ball must be equipped for monster prediction check

* getAdjustedHitStat returns max for all stats if ATTACKS_CANT_MISS

Move ATTACKS_CANT_MISS check before getHitStatType switch so that it applies for any hit stat (muscle, mysticality, or moxie)
  • Loading branch information
ckb11 committed Feb 8, 2022
1 parent c73eab1 commit 64751b5
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 64751b5

Please sign in to comment.