diff --git a/forge-ai/src/main/java/forge/ai/ability/AssignGroupAi.java b/forge-ai/src/main/java/forge/ai/ability/AssignGroupAi.java index fb1b769347d..691a21904ce 100644 --- a/forge-ai/src/main/java/forge/ai/ability/AssignGroupAi.java +++ b/forge-ai/src/main/java/forge/ai/ability/AssignGroupAi.java @@ -11,8 +11,11 @@ import forge.game.spellability.SpellAbility; public class AssignGroupAi extends SpellAbilityAi { - public AssignGroupAi() { - // TODO Auto-generated constructor stub + protected boolean canPlayAI(Player ai, SpellAbility sa) { + // TODO: Currently this AI relies on the card-specific limiting hints (NeedsToPlay / NeedsToPlayVar), + // otherwise the AI considers the card playable. + + return true; } public SpellAbility chooseSingleSpellAbility(Player player, SpellAbility sa, List spells, Map params) { diff --git a/forge-gui/res/cardsfolder/upcoming/pirs_whim.txt b/forge-gui/res/cardsfolder/upcoming/pirs_whim.txt index dafdee4b0e7..fcaceefbbc0 100644 --- a/forge-gui/res/cardsfolder/upcoming/pirs_whim.txt +++ b/forge-gui/res/cardsfolder/upcoming/pirs_whim.txt @@ -4,5 +4,11 @@ Types:Sorcery A:SP$ AssignGroup | Cost$ 3 G | Defined$ Player | Choices$ DBSearch,DBSacrifice | AILogic$ FriendOrFoe | SpellDescription$ For each player, choose friend or foe. Each friend searches their library for a land card, puts it onto the battlefield tapped, then shuffles their library. Each foe sacrifices an artifact or enchantment they control. SVar:DBSearch:DB$ChangeZone | Origin$ Library | Destination$ Battlefield | DefinedPlayer$ Remembered | ChangeType$ Land | ChangeNum$ 1 | StackDescription$ Each friend searches their library for a land card, puts it onto the battlefield tapped, then shuffles their library. | SpellDescription$ Friend searches their library for a land card, puts it onto the battlefield tapped, then shuffles their library. SVar:DBSacrifice:DB$Sacrifice | Defined$ Remembered | SacValid$ Artifact,Enchantment | SacMessage$ artifact or enchantment | StackDescription$ Each foe sacrifices an artifact or enchantment they control. | SpellDescription$ Foe sacrifices an artifact or enchantment they control. +SVar:NeedsToPlayVar:Z GE1 +SVar:Z:SVar$Z1/Plus.C1 +SVar:Z1:SVar$C2/Plus.C3 +SVar:C1:Count$Valid Land.YourTeamCtrl+inZoneLibrary +SVar:C2:Count$Valid Enchantment.OppCtrl+inZoneBattlefield +SVar:C3:Count$Valid Artifact.OppCtrl+inZoneBattlefield SVar:Picture:http://www.wizards.com/global/images/magic/general/pirs_whim.jpg Oracle:For each player, choose friend or foe. Each friend searches their library for a land card, puts it onto the battlefield tapped, then shuffles their library. Each foe sacrifices an artifact or enchantment they control. diff --git a/forge-gui/res/cardsfolder/upcoming/regna_sanction.txt b/forge-gui/res/cardsfolder/upcoming/regnas_sanction.txt similarity index 91% rename from forge-gui/res/cardsfolder/upcoming/regna_sanction.txt rename to forge-gui/res/cardsfolder/upcoming/regnas_sanction.txt index ff123091bbf..58f6ce08095 100644 --- a/forge-gui/res/cardsfolder/upcoming/regna_sanction.txt +++ b/forge-gui/res/cardsfolder/upcoming/regnas_sanction.txt @@ -10,6 +10,9 @@ SVar:DBChoose:DB$ ChooseCard | Defined$ Remembered | Amount$ 1 | Choices$ Creatu SVar:DBImprint:DB$ Pump | ImprintCards$ Valid Creature.IsNotRemembered+RememberedPlayerCtrl SVar:DBTapAll:DB$ TapAll | ValidCards$ Creature.IsImprinted | SubAbility$ DBCleanup SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True | ClearChosenCard$ True -SVar:RemAIDeck:True +SVar:NeedsToPlayVar:Z GE3 +SVar:Z:SVar$Z1/Plus.Z2 +SVar:Z1:Count$Valid Creature.YourTeamCtrl+inZoneBattlefield +SVar:Z2:Count$Valid Creature.OppCtrl+inZoneBattlefield+untapped SVar:Picture:http://www.wizards.com/global/images/magic/general/regna_sanction.jpg Oracle:For each player, choose friend or foe. Each friend puts a +1/+1 counter on each creature they control. Each foe chooses one untapped creature they control, then taps the rest. diff --git a/forge-gui/res/cardsfolder/upcoming/zndrsplt_judgment.txt b/forge-gui/res/cardsfolder/upcoming/zndrsplts_judgment.txt similarity index 91% rename from forge-gui/res/cardsfolder/upcoming/zndrsplt_judgment.txt rename to forge-gui/res/cardsfolder/upcoming/zndrsplts_judgment.txt index 3be51d7a6cf..2187cd86827 100644 --- a/forge-gui/res/cardsfolder/upcoming/zndrsplt_judgment.txt +++ b/forge-gui/res/cardsfolder/upcoming/zndrsplts_judgment.txt @@ -8,6 +8,9 @@ SVar:FoeRepeat:DB$ RepeatEach | Cost$ U | RepeatPlayers$ Remembered | RepeatSubA SVar:PlayChoose:DB$ ChooseCard | Defined$ Player.IsRemembered | Choices$ Creature.RememberedPlayerCtrl | Amount$ 1 | Mandatory$ True | AILogic$ WorstCard | ChoiceTitle$ Choose a creature you control | RememberChosen$ True SVar:BounceAll:DB$ ChangeZoneAll | Origin$ Battlefield | Destination$ Hand | ChangeType$ Creature.IsRemembered | SubAbility$ DBCleanup SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True | ClearChosenCard$ True -SVar:RemAIDeck:True +SVar:NeedsToPlayVar:Z GE2 +SVar:Z:SVar$Z1/Plus.Z2 +SVar:Z1:Count$Valid Creature.YourTeamCtrl+inZoneBattlefield +SVar:Z2:Count$Valid Creature.OppCtrl+inZoneBattlefield SVar:Picture:http://www.wizards.com/global/images/magic/general/zndrsplt_judgment.jpg Oracle:For each player, choose friend or foe. Each friend creates a token that's a copy of a creature they control. Each foe returns a creature they control to its owner's hand.