v3.1.0: fixed crashes caused by loading existing Warrior saves
This commit is contained in:
@@ -371,11 +371,10 @@ public class BrokenSeal extends Item {
|
|||||||
if (bundle.contains(COOLDOWN)) {
|
if (bundle.contains(COOLDOWN)) {
|
||||||
cooldown = bundle.getInt(COOLDOWN);
|
cooldown = bundle.getInt(COOLDOWN);
|
||||||
turnsSinceEnemies = bundle.getInt(TURNS_SINCE_ENEMIES);
|
turnsSinceEnemies = bundle.getInt(TURNS_SINCE_ENEMIES);
|
||||||
} else {
|
|
||||||
//pre-3.1 shield, normally just clear it, but retain if it's big and possibly from berserking
|
//if we have shield from pre-3.1, have it last a bit
|
||||||
if (shielding() < maxShield()+5 && target.HP > 0){
|
} else if (shielding() > 0) {
|
||||||
setShield(0);
|
turnsSinceEnemies = -100;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user