- Implemented AI for auto-payment of Converge/Sunburst costs

This commit is contained in:
excessum
2015-10-11 07:25:08 +00:00
parent ea8f15345e
commit 7dd216545d
4 changed files with 63 additions and 10 deletions

View File

@@ -873,6 +873,10 @@ public class Card extends GameEntity implements Comparable<Card> {
public final boolean hasSecondStrike() {
return hasDoubleStrike() || !hasFirstStrike();
}
public final boolean hasConverge() {
return "Count$Converge".equals(getSVar("X")) || "Count$Converge".equals(getSVar("Y")) || hasKeyword("Sunburst");
}
public final boolean canReceiveCounters(final CounterType type) {
if (hasKeyword("CARDNAME can't have counters placed on it.")) {