mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
back from the brink now brings back the cards (but created 2 copies for unknown reason)
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user