mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Merge branch 'trickery' into 'master'
KHM: Tibalt's Trickery and support See merge request core-developers/forge!3680
This commit is contained in:
@@ -133,6 +133,9 @@ public class DigUntilEffect extends SpellAbilityEffect {
|
|||||||
revealed.add(c);
|
revealed.add(c);
|
||||||
if (c.isValid(type, sa.getActivatingPlayer(), host, sa)) {
|
if (c.isValid(type, sa.getActivatingPlayer(), host, sa)) {
|
||||||
found.add(c);
|
found.add(c);
|
||||||
|
if (sa.hasParam("ForgetOtherRemembered")) {
|
||||||
|
host.clearRemembered();
|
||||||
|
}
|
||||||
if (remember) {
|
if (remember) {
|
||||||
host.addRemembered(c);
|
host.addRemembered(c);
|
||||||
}
|
}
|
||||||
|
|||||||
13
forge-gui/res/cardsfolder/upcoming/tibalts_trickery.txt
Normal file
13
forge-gui/res/cardsfolder/upcoming/tibalts_trickery.txt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Name:Tibalt's Trickery
|
||||||
|
ManaCost:1 R
|
||||||
|
Types:Instant
|
||||||
|
A:SP$ Counter | TargetType$ Spell | TgtPrompt$ Select target spell | ValidTgts$ Card | SubAbility$ DBRandom | Destination$ Graveyard | RememberCountered$ True | StackDescription$ SpellDescription | SpellDescription$ Counter target spell. Choose 1, 2, or 3 at random. Its controller mills that many cards, then exiles cards from the top of their library until they exile a nonland card with a different name than that spell. They may cast that card without paying its mana cost. Then they put the exiled cards on the bottom of their library in a random order.
|
||||||
|
SVar:DBRandom:DB$ ChooseNumber | Min$ 1 | Max$ 3 | Defined$ You | Random$ True | SubAbility$ DBMill | StackDescription$ None
|
||||||
|
SVar:DBMill:DB$ Mill | NumCards$ X | References$ X | Defined$ TargetedController | SubAbility$ DBDig | StackDescription$ None
|
||||||
|
SVar:DBDig:DB$ DigUntil | Defined$ TargetedController | Valid$ Card.nonLand+doesNotShareNameWith Remembered | FoundDestination$ Exile | RevealedDestination$ Exile | RememberFound$ True | ForgetOtherRemembered$ True | ImprintRevealed$ True | SubAbility$ DBPlay | StackDescription$ None
|
||||||
|
SVar:DBPlay:DB$ Play | Controller$ TargetedController | OptionalDecider$ TargetedController | Defined$ Remembered | WithoutManaCost$ True | Optional$ True | SubAbility$ DBChangeZone | StackDescription$ None
|
||||||
|
SVar:DBChangeZone:DB$ ChangeZoneAll | ChangeType$ Card.IsImprinted | Origin$ Exile | Destination$ Library | RandomOrder$ True | LibraryPosition$ -1 | SubAbility$ DBCleanup
|
||||||
|
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True | ClearImprinted$ True
|
||||||
|
SVar:X:Count$ChosenNumber
|
||||||
|
DeckHas:Ability$Mill
|
||||||
|
Oracle:Counter target spell. Choose 1, 2, or 3 at random. Its controller mills that many cards, then exiles cards from the top of their library until they exile a nonland card with a different name than that spell. They may cast that card without paying its mana cost. Then they put the exiled cards on the bottom of their library in a random order.
|
||||||
Reference in New Issue
Block a user