Changed Helix Pinnacle AI calculation to consider doubling seasons in hand.

This commit is contained in:
jendave
2011-08-06 03:34:20 +00:00
parent 20cb8b73f0
commit 99a2419dab

View File

@@ -16959,7 +16959,9 @@ public class CardFactory implements NewConstants {
int n = Math.max(1, Math.min((int)Math.ceil((100-getSourceCard().getCounters(Counters.TOWER))/m),
ComputerUtil.getAvailableMana().size())) ;
setManaCost(n + "");
return m*n <=20;
return !(new CardList(AllZone.Computer_Hand.getCards()).containsName("Doubling Season") && n>=5 )
&& m*n >= Math.min(20, 100 - getSourceCard().getCounters(Counters.TOWER));
//Persuming if AI cast the Pinnacle, it has green mana
}
};
ability.setBeforePayMana(new Input()