v3.0.0: fixed a crash caused by stone glyph and trinity
This commit is contained in:
@@ -350,7 +350,7 @@ public class Armor extends EquipableItem {
|
|||||||
|
|
||||||
public float evasionFactor( Char owner, float evasion ){
|
public float evasionFactor( Char owner, float evasion ){
|
||||||
|
|
||||||
if (hasGlyph(Stone.class, owner) && !((Stone)glyph).testingEvasion()){
|
if (hasGlyph(Stone.class, owner) && !Stone.testingEvasion()){
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -56,9 +56,9 @@ public class Stone extends Armor.Glyph {
|
|||||||
return damage;
|
return damage;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean testing = false;
|
private static boolean testing = false;
|
||||||
|
|
||||||
public boolean testingEvasion(){
|
public static boolean testingEvasion(){
|
||||||
return testing;
|
return testing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user