mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user