mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Merge branch 'activateForCost' into 'master'
Improve activateForCost See merge request core-developers/forge!5901
This commit is contained in:
@@ -1323,7 +1323,7 @@ public class ComputerUtil {
|
|||||||
} else if (sa.isPwAbility() && ai.getGame().getPhaseHandler().is(PhaseType.MAIN2)) {
|
} else if (sa.isPwAbility() && ai.getGame().getPhaseHandler().is(PhaseType.MAIN2)) {
|
||||||
for (final CostPart part : abCost.getCostParts()) {
|
for (final CostPart part : abCost.getCostParts()) {
|
||||||
if (part instanceof CostPutCounter) {
|
if (part instanceof CostPutCounter) {
|
||||||
return true;
|
return part.convertAmount() == null || part.convertAmount() > 0 || ai.isCardInPlay("Carth the Lion");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -379,7 +379,7 @@ public class ChangeZoneAi extends SpellAbilityAi {
|
|||||||
list = CardLists.getValidCards(list, type, source.getController(), source, sa);
|
list = CardLists.getValidCards(list, type, source.getController(), source, sa);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!activateForCost || list.isEmpty()) {
|
if (!activateForCost && list.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ("Atarka's Command".equals(sourceName)
|
if ("Atarka's Command".equals(sourceName)
|
||||||
|
|||||||
Reference in New Issue
Block a user