From 37461aa3e54ca0021a65bb86cda014bec954b1eb Mon Sep 17 00:00:00 2001 From: Northmoc Date: Sun, 6 Dec 2020 23:02:39 -0500 Subject: [PATCH] raiding_party.txt and support --- .../game/ability/effects/ChooseCardEffect.java | 5 +++++ forge-gui/res/cardsfolder/r/raiding_party.txt | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 forge-gui/res/cardsfolder/r/raiding_party.txt diff --git a/forge-game/src/main/java/forge/game/ability/effects/ChooseCardEffect.java b/forge-game/src/main/java/forge/game/ability/effects/ChooseCardEffect.java index 3d55ced65bc..2b3e8aa16e2 100644 --- a/forge-game/src/main/java/forge/game/ability/effects/ChooseCardEffect.java +++ b/forge-game/src/main/java/forge/game/ability/effects/ChooseCardEffect.java @@ -135,5 +135,10 @@ public class ChooseCardEffect extends SpellAbilityEffect { host.removeRemembered(rem); } } + if (sa.hasParam("ImprintChosen")) { + for (final Card imp : chosen) { + host.addImprintedCard(imp); + } + } } } diff --git a/forge-gui/res/cardsfolder/r/raiding_party.txt b/forge-gui/res/cardsfolder/r/raiding_party.txt new file mode 100644 index 00000000000..7c1a88b1095 --- /dev/null +++ b/forge-gui/res/cardsfolder/r/raiding_party.txt @@ -0,0 +1,17 @@ +Name:Raiding Party +ManaCost:2 R +Types:Enchantment +S:Mode$ CantTarget | ValidCard$ Card.Self | ValidSource$ Card.White | Description$ CARDNAME can't be the target of white spells or abilities from white sources. +A:AB$ RepeatEach | Cost$ Sac<1/Orc/Orc> | CostDesc$ Sacrifice an Orc: | RepeatPlayers$ Player | RepeatSubAbility$ ChooseCardsToTap | SubAbility$ DBDestroy | SpellDescription$ Each player may tap any number of untapped white creatures they control. For each creature tapped this way, that player chooses up to two Plains. Then destroy all Plains that weren’t chosen this way by any player. +SVar:ChooseCardsToTap:DB$ ChooseCard | Defined$ Remembered | MinAmount$ 0 | Amount$ NumCreatures | References$ NumCreatures | Choices$ Creature.untapped+White+RememberedPlayerCtrl | ChoiceTitle$ Choose any number of untapped white creatures you control | ChoiceZone$ Battlefield | RememberChosen$ True | SubAbility$ DBTap +SVar:DBTap:DB$ Tap | Defined$ Remembered | SubAbility$ ChoosePlainsToSave +SVar:ChoosePlainsToSave:DB$ ChooseCard | Defined$ Remembered | MinAmount$ 0 | Amount$ TappedXTwo | References$ TappedXTwo | Choices$ Plains | ChoiceTitle$ Choose up to two Plains for each creature tapped | ChoiceZone$ Battlefield | ImprintChosen$ True | SubAbility$ DBCleanup +SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True | ClearChosenCard$ True +SVar:DBDestroy:DB$ DestroyAll | ValidCards$ Plains.IsNotImprinted | SubAbility$ DBCleanImp | StackDescription$ None +SVar:DBCleanImp:DB$ Cleanup | ClearImprinted$ True +SVar:NumCreatures:Count$Valid Creature.untapped+White+RememberedPlayerCtrl +SVar:TappedXTwo:Count$Valid Creature.IsRemembered/Times.2 +AI:RemoveDeck:Random +SVar:NeedsToPlay:Plains.OppCtrl +DeckNeeds:Type$Orc +Oracle:Raiding Party can’t be the target of white spells or abilities from white sources.\nSacrifice an Orc: Each player may tap any number of untapped white creatures they control. For each creature tapped this way, that player chooses up to two Plains. Then destroy all Plains that weren’t chosen this way by any player.