mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
ComputerUtilCost: checkRemoveCounterCost allow Zero Loyality Abilities
This commit is contained in:
@@ -91,7 +91,9 @@ public class ComputerUtilCost {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sa != null) {
|
// check the sa what the PaymentDecision is.
|
||||||
|
// ignore Loyality abilities with Zero as Cost
|
||||||
|
if (sa != null && !CounterType.LOYALTY.equals(type)) {
|
||||||
final AiCostDecision decision = new AiCostDecision(sa.getActivatingPlayer(), sa);
|
final AiCostDecision decision = new AiCostDecision(sa.getActivatingPlayer(), sa);
|
||||||
PaymentDecision pay = decision.visit(remCounter);
|
PaymentDecision pay = decision.visit(remCounter);
|
||||||
if (pay == null || pay.c <= 0) {
|
if (pay == null || pay.c <= 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user