mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- RepeatEach AI should obey AILogic$ Never (e.g. Watchers of the Dead)
This commit is contained in:
@@ -26,7 +26,9 @@ public class RepeatEachAi extends SpellAbilityAi {
|
|||||||
protected boolean canPlayAI(Player aiPlayer, SpellAbility sa) {
|
protected boolean canPlayAI(Player aiPlayer, SpellAbility sa) {
|
||||||
String logic = sa.getParam("AILogic");
|
String logic = sa.getParam("AILogic");
|
||||||
|
|
||||||
if ("CloneMyTokens".equals(logic)) {
|
if ("Never".equals(logic)) {
|
||||||
|
return false;
|
||||||
|
} else if ("CloneMyTokens".equals(logic)) {
|
||||||
if (CardLists.filter(aiPlayer.getCreaturesInPlay(), Presets.TOKEN).size() < 2) {
|
if (CardLists.filter(aiPlayer.getCreaturesInPlay(), Presets.TOKEN).size() < 2) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user