MOM: Backup keyword and cards (#2799)

* Backup keyword setup

* Backup cards

* KeywordWithAmount spacing

* mirror_shield_hoplite.txt and support

* fix for KeywordWithAmount

* doomskar_warrior.txt fearless_skald.txt

* add PlayMain1

* typo fix

* add logic to ComputerUtil.castPermanentInMain1 instead of using PlayMain1 on cardscripts
This commit is contained in:
Northmoc
2023-04-06 22:32:41 -04:00
committed by GitHub
parent 2d52a878c1
commit ee418ded60
15 changed files with 141 additions and 6 deletions

View File

@@ -1074,6 +1074,15 @@ public class ComputerUtil {
}
}
// cast Backup creatures in main 1 to pump attackers
if (cardState.hasKeyword(Keyword.BACKUP)) {
for (Card potentialAtkr: ai.getCreaturesInPlay()) {
if (ComputerUtilCard.doesCreatureAttackAI(ai, potentialAtkr)) {
return true;
}
}
}
// try not to cast Raid creatures in main 1 if an attack is likely
if ("Count$AttackersDeclared".equals(card.getSVar("RaidTest")) && !cardState.hasKeyword(Keyword.HASTE)) {
for (Card potentialAtkr: ai.getCreaturesInPlay()) {