mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Variants: Fixed CardRules parser choking on "+" characters.
This commit is contained in:
@@ -267,8 +267,8 @@ public final class CardRules {
|
|||||||
if (slashPos == -1) {
|
if (slashPos == -1) {
|
||||||
throw new RuntimeException(String.format("Vanguard '%s' has bad hand/life stats", this.getName()));
|
throw new RuntimeException(String.format("Vanguard '%s' has bad hand/life stats", this.getName()));
|
||||||
}
|
}
|
||||||
this.hand = Integer.parseInt(pt.substring(0,pt.indexOf('/')));
|
this.hand = Integer.parseInt(pt.substring(0,pt.indexOf('/')).replace("+", ""));
|
||||||
this.life = Integer.parseInt(pt.substring(pt.indexOf('/')+1));
|
this.life = Integer.parseInt(pt.substring(pt.indexOf('/')+1).replace("+", ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.characteristics.getSetsData().isEmpty()) {
|
if (this.characteristics.getSetsData().isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user