mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
- Don't try the Adapt logic if the card can't receive +1/+1 counters.
This commit is contained in:
@@ -318,7 +318,7 @@ public class CountersPutAi extends SpellAbilityAi {
|
|||||||
Game game = ai.getGame();
|
Game game = ai.getGame();
|
||||||
Combat combat = game.getCombat();
|
Combat combat = game.getCombat();
|
||||||
|
|
||||||
if (source.getCounters(CounterType.P1P1) > 0) {
|
if (!source.canReceiveCounters(CounterType.P1P1) || source.getCounters(CounterType.P1P1) > 0) {
|
||||||
return false;
|
return false;
|
||||||
} else if (combat != null && ph.is(PhaseType.COMBAT_DECLARE_BLOCKERS)) {
|
} else if (combat != null && ph.is(PhaseType.COMBAT_DECLARE_BLOCKERS)) {
|
||||||
return doCombatAdaptLogic(source, amount, combat);
|
return doCombatAdaptLogic(source, amount, combat);
|
||||||
@@ -1057,7 +1057,6 @@ public class CountersPutAi extends SpellAbilityAi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean doCombatAdaptLogic(Card source, int amount, Combat combat) {
|
private boolean doCombatAdaptLogic(Card source, int amount, Combat combat) {
|
||||||
// TODO: predict "can't have counters placed on it" type of effects here?
|
|
||||||
if (combat.isAttacking(source)) {
|
if (combat.isAttacking(source)) {
|
||||||
if (!combat.isBlocked(source)) {
|
if (!combat.isBlocked(source)) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user