- Fixed AI not being able to pay non mana costs for cumulative upkeep.

This commit is contained in:
Sloth
2012-08-24 10:10:18 +00:00
parent 47bf5172e9
commit d7d9227fd7
2 changed files with 4 additions and 3 deletions

View File

@@ -4,7 +4,6 @@ Types:Creature Elemental
Text:no text
PT:9/9
K:Cumulative upkeep:AddCounter<1/M1M1>:Put a -1/-1 counter on CARDNAME.
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/aboroth.jpg
SetInfo:WTH|Rare|http://magiccards.info/scans/en/wl/59.jpg

View File

@@ -31,6 +31,7 @@ import forge.GameAction;
import forge.GameActionUtil;
import forge.Singletons;
import forge.card.cardfactory.CardFactoryUtil;
import forge.card.cost.Cost;
import forge.card.spellability.Ability;
import forge.card.spellability.AbilityMana;
import forge.card.spellability.AbilityStatic;
@@ -446,8 +447,9 @@ public class Upkeep extends Phase implements java.io.Serializable {
* a {@link java.lang.String} object.
* @return a {@link forge.card.spellability.Ability} object.
*/
private static Ability upkeepAIPayment(final Card c, final String cost) {
return new AbilityStatic(c, cost) {
private static Ability upkeepAIPayment(final Card c, final String costString) {
Cost cost = new Cost(c, costString, true);
return new AbilityStatic(c, cost, null) {
@Override
public void resolve() {