- Fixed a bug in CostTapType

This commit is contained in:
swordshine
2014-05-01 10:53:21 +00:00
parent 77b9021145
commit 5a671223b7
5 changed files with 7 additions and 8 deletions

View File

@@ -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() {

View File

@@ -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));