back from the brink now brings back the cards (but created 2 copies for unknown reason)

This commit is contained in:
Maxmtg
2014-01-22 07:14:53 +00:00
parent 37d45ffbeb
commit 4163c56502
5 changed files with 23 additions and 15 deletions

View File

@@ -731,9 +731,9 @@ public class HumanPlay {
return done;
}
public static boolean payManaCost(final CostPartMana mc, final SpellAbility ability, final Player activator) {
public static boolean payManaCost(final ManaCost realCost, final CostPartMana mc, final SpellAbility ability, final Player activator) {
final Card source = ability.getSourceCard();
ManaCostBeingPaid toPay = new ManaCostBeingPaid(mc.getManaToPay(), mc.getRestiction());
ManaCostBeingPaid toPay = new ManaCostBeingPaid(realCost, mc.getRestiction());
boolean xWasBilled = false;
String xInCard = source.getSVar("X");

View File

@@ -1082,7 +1082,14 @@ public class PlayerControllerHuman extends PlayerController {
@Override
public boolean payManaCost(CostPartMana costPartMana, PaymentDecision pd, SpellAbility sa) {
// TODO Auto-generated method stub
return HumanPlay.payManaCost(costPartMana, sa, player);
ManaCost toPay;
if ( costPartMana.isExiledCreatureCost() )
toPay = sa.getPaidList("Exiled").get(0).getManaCost();
else
toPay = costPartMana.getManaToPay();
return HumanPlay.payManaCost(toPay, costPartMana, sa, player);
}
@Override