mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Support mandatory mana payments
This commit is contained in:
@@ -264,7 +264,6 @@ public class AiCostDecision extends CostDecisionMakerBase {
|
||||
return res.isEmpty() ? null : PaymentDecision.card(res);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public PaymentDecision visit(CostGainLife cost) {
|
||||
final List<Player> oppsThatCanGainLife = Lists.newArrayList();
|
||||
@@ -282,7 +281,6 @@ public class AiCostDecision extends CostDecisionMakerBase {
|
||||
return PaymentDecision.players(oppsThatCanGainLife);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public PaymentDecision visit(CostMill cost) {
|
||||
int c = cost.getAbilityAmount(ability);
|
||||
@@ -681,7 +679,6 @@ public class AiCostDecision extends CostDecisionMakerBase {
|
||||
toRemove += removeCounter(table, prefs, CounterEnumType.LORE, c - toRemove);
|
||||
}
|
||||
|
||||
|
||||
// TODO add logic to remove positive counters?
|
||||
if (c > toRemove && cost.counter != null) {
|
||||
// TODO add logic for Ooze Flux, should probably try to make a token as big as possible
|
||||
|
||||
@@ -977,7 +977,7 @@ public class ComputerUtilMana {
|
||||
* @param manaSpentToPay list of mana spent
|
||||
* @return whether the floating mana is sufficient to pay the cost fully
|
||||
*/
|
||||
private static boolean payManaCostFromPool(final ManaCostBeingPaid cost, final SpellAbility sa, final Player ai,
|
||||
public static boolean payManaCostFromPool(final ManaCostBeingPaid cost, final SpellAbility sa, final Player ai,
|
||||
final boolean test, List<Mana> manaSpentToPay) {
|
||||
final boolean hasConverge = sa.getHostCard().hasConverge();
|
||||
List<ManaCostShard> unpaidShards = cost.getUnpaidShards();
|
||||
|
||||
Reference in New Issue
Block a user