mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Update CardFace.java
This commit is contained in:
@@ -90,7 +90,7 @@ final class CardFace implements ICardFace {
|
|||||||
void setPtText(String value) {
|
void setPtText(String value) {
|
||||||
final int slashPos = value.indexOf('/');
|
final int slashPos = value.indexOf('/');
|
||||||
if (slashPos == -1) {
|
if (slashPos == -1) {
|
||||||
throw new RuntimeException(TextUtil.concatWithSpace("Creature", TextUtil.enclosedSingleQuote(this.getName()),"has bad p/t stats"));
|
throw new RuntimeException("Creature '" + this.getName() + "' has bad p/t stats");
|
||||||
}
|
}
|
||||||
boolean negPower = value.charAt(0) == '-';
|
boolean negPower = value.charAt(0) == '-';
|
||||||
boolean negToughness = value.charAt(slashPos + 1) == '-';
|
boolean negToughness = value.charAt(slashPos + 1) == '-';
|
||||||
|
|||||||
Reference in New Issue
Block a user