- Fixed description of "CantBeBlockedByAmount GT" keyword.

This commit is contained in:
Sloth
2013-06-24 20:59:09 +00:00
parent d78b59b9cd
commit e2ef4b497c

View File

@@ -2159,7 +2159,7 @@ public class Card extends GameEntity implements Comparable<Card> {
private String getTextForKwCantBeBlockedByAmount(String keyword) { private String getTextForKwCantBeBlockedByAmount(String keyword) {
String restriction = keyword.split(" ", 2)[1]; String restriction = keyword.split(" ", 2)[1];
boolean isLT = "LT".equals(restriction.substring(0,2)); boolean isLT = "LT".equals(restriction.substring(0,2));
final String byClause = isLT ? "except by " : "by more than"; final String byClause = isLT ? "except by " : "by more than ";
int cnt = Integer.parseInt(restriction.substring(2)); int cnt = Integer.parseInt(restriction.substring(2));
return byClause + Lang.nounWithNumeral(cnt, isLT ? "or more creature" : "creature"); return byClause + Lang.nounWithNumeral(cnt, isLT ? "or more creature" : "creature");
} }