mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed AI not being able to pay non mana costs for cumulative upkeep.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user