I believe this would break ai's mana payment

This commit is contained in:
Maxmtg
2014-02-18 01:12:37 +00:00
parent 42fcd856d0
commit b69228e28b
6 changed files with 36 additions and 46 deletions

View File

@@ -82,8 +82,6 @@ public class InputPayManaSimple extends InputPayMana {
player.payLife(this.phyLifeToLose, this.originalCard);
}
if (!this.saPaidFor.getHostCard().isCopiedSpell()) {
player.getManaPool().clearManaPaid(this.saPaidFor, false);
if (this.saPaidFor.isSpell()) {
this.saPaidFor.setHostCard(game.getAction().moveToStack(this.originalCard));
}

View File

@@ -627,7 +627,7 @@ public class HumanPlay {
prompt = source + "\n" + promptCurrent;
}
p.getManaPool().clearManaPaid(sourceAbility, false);
sourceAbility.clearManaPaid();
boolean paid = p.getController().payManaCost(cost.getCostMana(), sourceAbility);
if (!paid) {
p.getManaPool().refundManaPaid(sourceAbility);