mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Fixed a bug in CostTapType
This commit is contained in:
@@ -52,7 +52,7 @@ public class GameRules {
|
||||
|
||||
public void setGamesPerMatch(int gamesPerMatch) {
|
||||
this.gamesPerMatch = gamesPerMatch;
|
||||
this.gamesToWinMatch = (int)Math.ceil((gamesPerMatch+1)/2);
|
||||
this.gamesToWinMatch = gamesPerMatch / 2 + 1;
|
||||
}
|
||||
|
||||
public boolean useAnte() {
|
||||
|
||||
@@ -73,7 +73,7 @@ public class CostTapType extends CostPartWithList {
|
||||
if (type.contains("sharesCreatureTypeWith")) {
|
||||
sb.append("two untapped creatures you control that share a creature type");
|
||||
} else if (type.contains("+withTotalPowerGE")) {
|
||||
String num = type.split("+withTotalPowerGE")[1];
|
||||
String num = type.split("\\+withTotalPowerGE")[1];
|
||||
sb.append("Tap any number of untapped creatures you control other than CARDNAME with total power " + num + "or greater");
|
||||
} else {
|
||||
sb.append(Cost.convertAmountTypeToWords(i, this.getAmount(), "untapped " + desc));
|
||||
|
||||
Reference in New Issue
Block a user