mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Trying to fix beneficial CounterPutAi logic.
This commit is contained in:
@@ -241,12 +241,6 @@ public class CountersPutAi extends SpellAbilityAi {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Phase-based LevelUp priorities are handled in checkPhaseRestrictions
|
|
||||||
// If we got here, we can safely assume AI is willing to activate it
|
|
||||||
if (sa.hasParam("LevelUp")) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO handle proper calculation of X values based on Cost
|
// TODO handle proper calculation of X values based on Cost
|
||||||
int amount = AbilityUtils.calculateAmount(source, amountStr, sa);
|
int amount = AbilityUtils.calculateAmount(source, amountStr, sa);
|
||||||
|
|
||||||
@@ -292,10 +286,6 @@ public class CountersPutAi extends SpellAbilityAi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sa.hasParam("Monstrosity")) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
PhaseHandler ph = ai.getGame().getPhaseHandler();
|
PhaseHandler ph = ai.getGame().getPhaseHandler();
|
||||||
|
|
||||||
if (!ai.getGame().getStack().isEmpty() && !SpellAbilityAi.isSorcerySpeed(sa)) {
|
if (!ai.getGame().getStack().isEmpty() && !SpellAbilityAi.isSorcerySpeed(sa)) {
|
||||||
@@ -437,7 +427,7 @@ public class CountersPutAi extends SpellAbilityAi {
|
|||||||
final List<Card> cards = AbilityUtils.getDefinedCards(sa.getHostCard(), sa.getParam("Defined"), sa);
|
final List<Card> cards = AbilityUtils.getDefinedCards(sa.getHostCard(), sa.getParam("Defined"), sa);
|
||||||
// Don't activate Curse abilities on my cards and non-curse abilites
|
// Don't activate Curse abilities on my cards and non-curse abilites
|
||||||
// on my opponents
|
// on my opponents
|
||||||
if (cards.isEmpty() || !cards.get(0).getController().isOpponentOf(ai)) {
|
if (cards.isEmpty() || cards.get(0).getController().isOpponentOf(ai)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user