merge latest trunk

This commit is contained in:
myk
2013-03-11 10:01:52 +00:00
6 changed files with 41 additions and 2 deletions

View File

@@ -9171,7 +9171,7 @@ public class Card extends GameEntity implements Comparable<Card> {
int requestedCMC = 0;
if (getRules().getSplitType() == CardSplitType.Split) {
if (getRules() != null && getRules().getSplitType() == CardSplitType.Split) {
switch(mode) {
case CurrentSideCMC:
// TODO: test if this returns combined CMC for the full face (then get rid of CombinedCMC mode?)

View File

@@ -1201,7 +1201,9 @@ public class AbilityUtils {
&& ComputerUtilCost.checkDamageCost(payer, ability.getPayCosts(), source, 4)
&& ComputerUtilCost.checkDiscardCost(payer, ability.getPayCosts(), source)
&& (!source.getName().equals("Tyrannize") || payer.getCardsIn(ZoneType.Hand).size() > 2)
&& (!source.getName().equals("Breaking Point") || payer.getCreaturesInPlay().size() > 1)) {
&& (!source.getName().equals("Breaking Point") || payer.getCreaturesInPlay().size() > 1)
&& (!source.getName().equals("Chain of Vapor")
|| (payer.getOpponent().getCreaturesInPlay().size() > 0 && payer.getLandsInPlay().size() > 3))) {
// AI was crashing because the blank ability used to pay costs
// Didn't have any of the data on the original SA to pay dependant costs
return true;