v3.0.0: fixed a crash caused by stone glyph and trinity

This commit is contained in:
Evan Debenham
2025-02-13 12:44:59 -05:00
parent 5c032132ed
commit 588c27788f
2 changed files with 3 additions and 3 deletions

View File

@@ -350,7 +350,7 @@ public class Armor extends EquipableItem {
public float evasionFactor( Char owner, float evasion ){
if (hasGlyph(Stone.class, owner) && !((Stone)glyph).testingEvasion()){
if (hasGlyph(Stone.class, owner) && !Stone.testingEvasion()){
return 0;
}

View File

@@ -56,9 +56,9 @@ public class Stone extends Armor.Glyph {
return damage;
}
private boolean testing = false;
private static boolean testing = false;
public boolean testingEvasion(){
public static boolean testingEvasion(){
return testing;
}