Skip to content

Commit

Permalink
WHO the_doctors_childhood_barn.txt (#4377)
Browse files Browse the repository at this point in the history
* Create the_doctors_childhood_barn.txt

* Update the_doctors_childhood_barn.txt

* Update the_doctors_childhood_barn.txt

* Update the_doctors_childhood_barn.txt

* PlaneswalkedTo and ForgetOnPhasedIn

---------

Co-authored-by: tool4ever <[email protected]>
  • Loading branch information
Klisz and tool4ever authored Dec 14, 2023
1 parent 8d921f8 commit 023e41c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void resolve(SpellAbility sa) {
}

// don't create Effect if there is no remembered Objects
if (rememberList.isEmpty() && (sa.hasParam("ForgetOnMoved") || sa.hasParam("ExileOnMoved") || sa.hasParam("ForgetCounter"))) {
if (rememberList.isEmpty() && (sa.hasParam("ForgetOnMoved") || sa.hasParam("ExileOnMoved") || sa.hasParam("ForgetCounter") || sa.hasParam("ForgetOnPhasedIn"))) {
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion forge-gui/res/cardsfolder/a/agyrem.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ SVar:AgyremReturn2:DB$ ChangeZone | Defined$ Remembered | Origin$ Graveyard | De
T:Mode$ ChaosEnsues | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever chaos ensues, creatures can't attack you until a player planeswalks.
SVar:RolledChaos:DB$ Effect | Name$ Agyrem Effect - Can't Attack | StaticAbilities$ STCantAttack | Triggers$ TrigPlaneswalk | Duration$ Permanent
SVar:STCantAttack:Mode$ CantAttack | EffectZone$ Command | ValidCard$ Creature | Target$ You | Description$ Creatures can't attack you until a player planeswalks.
SVar:TrigPlaneswalk:Mode$ PlaneswalkedFrom | Execute$ AgyremCleanup | Static$ True
SVar:TrigPlaneswalk:Mode$ PlaneswalkedTo | Execute$ AgyremCleanup | Static$ True
SVar:AIRollPlanarDieParams:Mode$ Always
Oracle:Whenever a white creature dies, return it to the battlefield under its owner's control at the beginning of the next end step.\nWhenever a nonwhite creature dies, return it to its owner's hand at the beginning of the next end step.\nWhenever chaos ensues, creatures can't attack you until a player planeswalks.
2 changes: 1 addition & 1 deletion forge-gui/res/cardsfolder/c/celestine_reef.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ T:Mode$ ChaosEnsues | TriggerZones$ Command | Execute$ RolledChaos | TriggerDesc
SVar:RolledChaos:DB$ Effect | StaticAbilities$ STCantlose,STCantWin | Triggers$ TrigPlaneswalk | Duration$ Permanent
SVar:STCantlose:Mode$ Continuous | EffectZone$ Command | Affected$ You | AddKeyword$ You can't lose the game. | Description$ Until a player planeswalks, you can't lose the game and your opponents can't win the game.
SVar:STCantWin:Mode$ Continuous | EffectZone$ Command | Affected$ Opponent | AddKeyword$ You can't win the game.
SVar:TrigPlaneswalk:Mode$ PlaneswalkedFrom | Execute$ DBCleanup | Static$ True
SVar:TrigPlaneswalk:Mode$ PlaneswalkedTo | Execute$ DBCleanup | Static$ True
SVar:DBCleanup:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile
SVar:AIRollPlanarDieParams:Mode$ Always
Oracle:Creatures without flying or islandwalk can't attack.\nWhenever chaos ensues, until a player planeswalks, you can't lose the game and your opponents can't win the game.
2 changes: 1 addition & 1 deletion forge-gui/res/cardsfolder/e/eloren_wilds.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SVar:TrigMana:DB$ ManaReflected | ColorOrType$ Type | ReflectProperty$ Produced
T:Mode$ ChaosEnsues | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever chaos ensues, target player can't cast spells until a player planeswalks.
SVar:RolledChaos:DB$ Effect | ValidTgts$ Player | IsCurse$ True | StaticAbilities$ STCantCast | Triggers$ TrigPlaneswalk | RememberObjects$ Targeted | Duration$ Permanent
SVar:STCantCast:Mode$ CantBeCast | EffectZone$ Command | ValidCard$ Card | Caster$ Player.IsRemembered | Description$ Target player can't cast spells until a player planeswalks.
SVar:TrigPlaneswalk:Mode$ PlaneswalkedFrom | Execute$ ExileSelf | Static$ True
SVar:TrigPlaneswalk:Mode$ PlaneswalkedTo | Execute$ ExileSelf | Static$ True
SVar:ExileSelf:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile
SVar:AIRollPlanarDieParams:Mode$ Always
Oracle:Whenever a player taps a permanent for mana, that player adds one mana of any type that permanent produced.\nWhenever chaos ensues, target player can't cast spells until a player planeswalks.
14 changes: 14 additions & 0 deletions forge-gui/res/cardsfolder/t/the_doctors_childhood_barn.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Name:The Doctor's Childhood Barn
ManaCost:no cost
Types:Plane Gallifrey
R:Event$ Moved | ValidCard$ Creature | Destination$ Battlefield | ReplaceWith$ ETBTapped | ReplacementResult$ Updated | ActiveZones$ Command | Description$ Creatures enter the battlefield tapped.
SVar:ETBTapped:DB$ Tap | ETB$ True | Defined$ ReplacedCard
T:Mode$ ChaosEnsues | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever chaos ensues, for each opponent, choose up to one target nonland permanent that opponent controls. Untap those permanents. They phase out. They can't phase in for as long as CARDNAME remains face up. When a player planeswalks, those permanents phase in.
SVar:RolledChaos:DB$ Untap | ValidTgts$ Permanent.nonLand+OppCtrl | TargetMin$ 0 | TargetMax$ OneEach | TargetsWithDifferentControllers$ True | TgtPrompt$ Select up to one target nonland permanent each opponent controls | SubAbility$ DBPhase
SVar:OneEach:PlayerCountOpponents$Amount
SVar:DBPhase:DB$ Phases | Defined$ Targeted | SubAbility$ DBEffect
SVar:DBEffect:DB$ Effect | Triggers$ TrigPlaneswalk | StaticAbilities$ CantPhaseIn | RememberObjects$ Targeted | Duration$ Permanent | ForgetOnPhasedIn$ True
SVar:CantPhaseIn:Mode$ CantPhaseIn | ValidCard$ Card.phasedOutIsRemembered | IsPresent$ Card.EffectSource+faceUp | PresentZone$ Command | Description$ They can't phase in for as long as EFFECTSOURCE remains face up. When a player planeswalks, those permanents phase in.
SVar:TrigPlaneswalk:Mode$ PlaneswalkedTo | Execute$ DBPhaseIn | TriggerZones$ Command | Secondary$ True | TriggerDescription$ When a player planeswalks, those permanents phase in.
SVar:DBPhaseIn:DB$ Phases | Defined$ Remembered | PhaseInOrOut$ True
Oracle:Creatures enter the battlefield tapped.\nWhenever chaos ensues, for each opponent, choose up to one target nonland permanent that opponent controls. Untap those permanents. They phase out. They can't phase in for as long as The Doctor's Childhood Barn remains face up. When a player planeswalks, those permanents phase in.

0 comments on commit 023e41c

Please sign in to comment.