From da5cb3d90568ce7a67bf6f07ba2da3d1d02b4ae0 Mon Sep 17 00:00:00 2001 From: Hanmac Date: Sun, 11 Feb 2018 12:11:04 +0100 Subject: [PATCH] check lands: use shorter code for etb replacement --- forge-gui/res/cardsfolder/c/clifftop_retreat.txt | 6 ++---- forge-gui/res/cardsfolder/d/dragonskull_summit.txt | 6 ++---- forge-gui/res/cardsfolder/d/drowned_catacomb.txt | 6 ++---- forge-gui/res/cardsfolder/g/glacial_fortress.txt | 6 ++---- forge-gui/res/cardsfolder/h/hinterland_harbor.txt | 6 ++---- forge-gui/res/cardsfolder/i/isolated_chapel.txt | 6 ++---- forge-gui/res/cardsfolder/r/rootbound_crag.txt | 6 ++---- forge-gui/res/cardsfolder/s/sulfur_falls.txt | 6 ++---- forge-gui/res/cardsfolder/s/sunpetal_grove.txt | 6 ++---- forge-gui/res/cardsfolder/w/woodland_cemetery.txt | 6 ++---- 10 files changed, 20 insertions(+), 40 deletions(-) diff --git a/forge-gui/res/cardsfolder/c/clifftop_retreat.txt b/forge-gui/res/cardsfolder/c/clifftop_retreat.txt index 8fecb3a89b8..287a0c04e57 100644 --- a/forge-gui/res/cardsfolder/c/clifftop_retreat.txt +++ b/forge-gui/res/cardsfolder/c/clifftop_retreat.txt @@ -1,10 +1,8 @@ Name:Clifftop Retreat ManaCost:no cost Types:Land -R:Event$ Moved | ValidCard$ Card.Self | Destination$ Battlefield | ReplaceWith$ LandTapped | Description$ CARDNAME enters the battlefield tapped unless you control a Mountain or a Plains. -SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionCheckSVar$ ETBCheckSVar | ConditionSVarCompare$ EQ0 | References$ ETBCheckSVar | SubAbility$ MoveToPlay -SVar:MoveToPlay:DB$ ChangeZone | Hidden$ True | Origin$ All | Destination$ Battlefield | Defined$ ReplacedCard -SVar:ETBCheckSVar:Count$Valid Mountain.YouCtrl,Plains.YouCtrl +K:ETBReplacement:Other:LandTapped +SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionPresent$ Mountain.YouCtrl,Plains.YouCtrl | ConditionCompare$ EQ0 | SpellDescription$ CARDNAME enters the battlefield tapped unless you control a Mountain or a Plains. A:AB$ Mana | Cost$ T | Produced$ R | SpellDescription$ Add {R} to your mana pool. A:AB$ Mana | Cost$ T | Produced$ W | SpellDescription$ Add {W} to your mana pool. SVar:Picture:http://www.wizards.com/global/images/magic/general/clifftop_retreat.jpg diff --git a/forge-gui/res/cardsfolder/d/dragonskull_summit.txt b/forge-gui/res/cardsfolder/d/dragonskull_summit.txt index f37c692988c..3ba70a6bd8a 100644 --- a/forge-gui/res/cardsfolder/d/dragonskull_summit.txt +++ b/forge-gui/res/cardsfolder/d/dragonskull_summit.txt @@ -1,10 +1,8 @@ Name:Dragonskull Summit ManaCost:no cost Types:Land -R:Event$ Moved | ValidCard$ Card.Self | Destination$ Battlefield | ReplaceWith$ LandTapped | Description$ CARDNAME enters the battlefield tapped unless you control a Swamp or a Mountain. -SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionCheckSVar$ ETBCheckSVar | ConditionSVarCompare$ EQ0 | References$ ETBCheckSVar | SubAbility$ MoveToPlay -SVar:MoveToPlay:DB$ ChangeZone | Hidden$ True | Origin$ All | Destination$ Battlefield | Defined$ ReplacedCard -SVar:ETBCheckSVar:Count$Valid Swamp.YouCtrl,Mountain.YouCtrl +K:ETBReplacement:Other:LandTapped +SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionPresent$ Swamp.YouCtrl,Mountain.YouCtrl | ConditionCompare$ EQ0 | SpellDescription$ CARDNAME enters the battlefield tapped unless you control a Swamp or a Mountain. A:AB$ Mana | Cost$ T | Produced$ B | SpellDescription$ Add {B} to your mana pool. A:AB$ Mana | Cost$ T | Produced$ R | SpellDescription$ Add {R} to your mana pool. SVar:Picture:http://www.wizards.com/global/images/magic/general/dragonskull_summit.jpg diff --git a/forge-gui/res/cardsfolder/d/drowned_catacomb.txt b/forge-gui/res/cardsfolder/d/drowned_catacomb.txt index e005ccbc8a3..44168a5157e 100644 --- a/forge-gui/res/cardsfolder/d/drowned_catacomb.txt +++ b/forge-gui/res/cardsfolder/d/drowned_catacomb.txt @@ -1,10 +1,8 @@ Name:Drowned Catacomb ManaCost:no cost Types:Land -R:Event$ Moved | ValidCard$ Card.Self | Destination$ Battlefield | ReplaceWith$ LandTapped | Description$ CARDNAME enters the battlefield tapped unless you control an Island or a Swamp. -SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionCheckSVar$ ETBCheckSVar | ConditionSVarCompare$ EQ0 | References$ ETBCheckSVar | SubAbility$ MoveToPlay -SVar:MoveToPlay:DB$ ChangeZone | Hidden$ True | Origin$ All | Destination$ Battlefield | Defined$ ReplacedCard -SVar:ETBCheckSVar:Count$Valid Island.YouCtrl,Swamp.YouCtrl +K:ETBReplacement:Other:LandTapped +SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionPresent$ Island.YouCtrl,Swamp.YouCtrl | ConditionCompare$ EQ0 | SpellDescription$ CARDNAME enters the battlefield tapped unless you control an Island or a Swamp. A:AB$ Mana | Cost$ T | Produced$ U | SpellDescription$ Add {U} to your mana pool. A:AB$ Mana | Cost$ T | Produced$ B | SpellDescription$ Add {B} to your mana pool. SVar:Picture:http://www.wizards.com/global/images/magic/general/drowned_catacomb.jpg diff --git a/forge-gui/res/cardsfolder/g/glacial_fortress.txt b/forge-gui/res/cardsfolder/g/glacial_fortress.txt index 3fd63976850..ae33f09887a 100644 --- a/forge-gui/res/cardsfolder/g/glacial_fortress.txt +++ b/forge-gui/res/cardsfolder/g/glacial_fortress.txt @@ -1,10 +1,8 @@ Name:Glacial Fortress ManaCost:no cost Types:Land -R:Event$ Moved | ValidCard$ Card.Self | Destination$ Battlefield | ReplaceWith$ LandTapped | Description$ CARDNAME enters the battlefield tapped unless you control a Plains or an Island. -SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionCheckSVar$ ETBCheckSVar | ConditionSVarCompare$ EQ0 | References$ ETBCheckSVar | SubAbility$ MoveToPlay -SVar:MoveToPlay:DB$ ChangeZone | Hidden$ True | Origin$ All | Destination$ Battlefield | Defined$ ReplacedCard -SVar:ETBCheckSVar:Count$Valid Island.YouCtrl,Plains.YouCtrl +K:ETBReplacement:Other:LandTapped +SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionPresent$ Plains.YouCtrl,Island.YouCtrl | ConditionCompare$ EQ0 | SpellDescription$ CARDNAME enters the battlefield tapped unless you control a Plains or an Island. A:AB$ Mana | Cost$ T | Produced$ W | SpellDescription$ Add {W} to your mana pool. A:AB$ Mana | Cost$ T | Produced$ U | SpellDescription$ Add {U} to your mana pool. SVar:Picture:http://www.wizards.com/global/images/magic/general/glacial_fortress.jpg diff --git a/forge-gui/res/cardsfolder/h/hinterland_harbor.txt b/forge-gui/res/cardsfolder/h/hinterland_harbor.txt index 2d92328d719..e59433a6580 100644 --- a/forge-gui/res/cardsfolder/h/hinterland_harbor.txt +++ b/forge-gui/res/cardsfolder/h/hinterland_harbor.txt @@ -1,10 +1,8 @@ Name:Hinterland Harbor ManaCost:no cost Types:Land -R:Event$ Moved | ValidCard$ Card.Self | Destination$ Battlefield | ReplaceWith$ LandTapped | Description$ CARDNAME enters the battlefield tapped unless you control a Forest or an Island. -SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionCheckSVar$ ETBCheckSVar | ConditionSVarCompare$ EQ0 | References$ ETBCheckSVar | SubAbility$ MoveToPlay -SVar:MoveToPlay:DB$ ChangeZone | Hidden$ True | Origin$ All | Destination$ Battlefield | Defined$ ReplacedCard -SVar:ETBCheckSVar:Count$Valid Island.YouCtrl,Forest.YouCtrl +K:ETBReplacement:Other:LandTapped +SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionPresent$ Forest.YouCtrl,Island.YouCtrl | ConditionCompare$ EQ0 | SpellDescription$ CARDNAME enters the battlefield tapped unless you control a Forest or an Island. A:AB$ Mana | Cost$ T | Produced$ G | SpellDescription$ Add {G} to your mana pool. A:AB$ Mana | Cost$ T | Produced$ U | SpellDescription$ Add {U} to your mana pool. SVar:Picture:http://www.wizards.com/global/images/magic/general/hinterland_harbor.jpg diff --git a/forge-gui/res/cardsfolder/i/isolated_chapel.txt b/forge-gui/res/cardsfolder/i/isolated_chapel.txt index 27b05b411cd..340e1224d12 100644 --- a/forge-gui/res/cardsfolder/i/isolated_chapel.txt +++ b/forge-gui/res/cardsfolder/i/isolated_chapel.txt @@ -1,10 +1,8 @@ Name:Isolated Chapel ManaCost:no cost Types:Land -R:Event$ Moved | ValidCard$ Card.Self | Destination$ Battlefield | ReplaceWith$ LandTapped | Description$ CARDNAME enters the battlefield tapped unless you control a Plains or a Swamp. -SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionCheckSVar$ ETBCheckSVar | ConditionSVarCompare$ EQ0 | References$ ETBCheckSVar | SubAbility$ MoveToPlay -SVar:MoveToPlay:DB$ ChangeZone | Hidden$ True | Origin$ All | Destination$ Battlefield | Defined$ ReplacedCard -SVar:ETBCheckSVar:Count$Valid Plains.YouCtrl,Swamp.YouCtrl +K:ETBReplacement:Other:LandTapped +SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionPresent$ Plains.YouCtrl,Swamp.YouCtrl | ConditionCompare$ EQ0 | SpellDescription$ CARDNAME enters the battlefield tapped unless you control a Plains or a Swamp. A:AB$ Mana | Cost$ T | Produced$ W | SpellDescription$ Add {W} to your mana pool. A:AB$ Mana | Cost$ T | Produced$ B | SpellDescription$ Add {B} to your mana pool. SVar:Picture:http://www.wizards.com/global/images/magic/general/isolated_chapel.jpg diff --git a/forge-gui/res/cardsfolder/r/rootbound_crag.txt b/forge-gui/res/cardsfolder/r/rootbound_crag.txt index e598041f2e2..7e4933a623e 100644 --- a/forge-gui/res/cardsfolder/r/rootbound_crag.txt +++ b/forge-gui/res/cardsfolder/r/rootbound_crag.txt @@ -1,10 +1,8 @@ Name:Rootbound Crag ManaCost:no cost Types:Land -R:Event$ Moved | ValidCard$ Card.Self | Destination$ Battlefield | ReplaceWith$ LandTapped | Description$ CARDNAME enters the battlefield tapped unless you control a Mountain or a Forest. -SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionCheckSVar$ ETBCheckSVar | ConditionSVarCompare$ EQ0 | References$ ETBCheckSVar | SubAbility$ MoveToPlay -SVar:MoveToPlay:DB$ ChangeZone | Hidden$ True | Origin$ All | Destination$ Battlefield | Defined$ ReplacedCard -SVar:ETBCheckSVar:Count$Valid Mountain.YouCtrl,Forest.YouCtrl +K:ETBReplacement:Other:LandTapped +SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionPresent$ Mountain.YouCtrl,Forest.YouCtrl | ConditionCompare$ EQ0 | SpellDescription$ CARDNAME enters the battlefield tapped unless you control a Mountain or a Forest. A:AB$ Mana | Cost$ T | Produced$ R | SpellDescription$ Add {R} to your mana pool. A:AB$ Mana | Cost$ T | Produced$ G | SpellDescription$ Add {G} to your mana pool. SVar:Picture:http://www.wizards.com/global/images/magic/general/rootbound_crag.jpg diff --git a/forge-gui/res/cardsfolder/s/sulfur_falls.txt b/forge-gui/res/cardsfolder/s/sulfur_falls.txt index 2120464866e..7dd6a4b5e15 100644 --- a/forge-gui/res/cardsfolder/s/sulfur_falls.txt +++ b/forge-gui/res/cardsfolder/s/sulfur_falls.txt @@ -1,10 +1,8 @@ Name:Sulfur Falls ManaCost:no cost Types:Land -R:Event$ Moved | ValidCard$ Card.Self | Destination$ Battlefield | ReplaceWith$ LandTapped | Description$ CARDNAME enters the battlefield tapped unless you control an Island or a Mountain. -SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionCheckSVar$ ETBCheckSVar | ConditionSVarCompare$ EQ0 | References$ ETBCheckSVar | SubAbility$ MoveToPlay -SVar:MoveToPlay:DB$ ChangeZone | Hidden$ True | Origin$ All | Destination$ Battlefield | Defined$ ReplacedCard -SVar:ETBCheckSVar:Count$Valid Mountain.YouCtrl,Island.YouCtrl +K:ETBReplacement:Other:LandTapped +SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionPresent$ Island.YouCtrl,Mountain.YouCtrl | ConditionCompare$ EQ0 | SpellDescription$ CARDNAME enters the battlefield tapped unless you control an Island or a Mountain. A:AB$ Mana | Cost$ T | Produced$ U | SpellDescription$ Add {U} to your mana pool. A:AB$ Mana | Cost$ T | Produced$ R | SpellDescription$ Add {R} to your mana pool. SVar:Picture:http://www.wizards.com/global/images/magic/general/sulfur_falls.jpg diff --git a/forge-gui/res/cardsfolder/s/sunpetal_grove.txt b/forge-gui/res/cardsfolder/s/sunpetal_grove.txt index 086888b0651..59757c2524d 100644 --- a/forge-gui/res/cardsfolder/s/sunpetal_grove.txt +++ b/forge-gui/res/cardsfolder/s/sunpetal_grove.txt @@ -1,10 +1,8 @@ Name:Sunpetal Grove ManaCost:no cost Types:Land -R:Event$ Moved | ValidCard$ Card.Self | Destination$ Battlefield | ReplaceWith$ LandTapped | Description$ CARDNAME enters the battlefield tapped unless you control a Forest or a Plains. -SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionCheckSVar$ ETBCheckSVar | ConditionSVarCompare$ EQ0 | References$ ETBCheckSVar | SubAbility$ MoveToPlay -SVar:MoveToPlay:DB$ ChangeZone | Hidden$ True | Origin$ All | Destination$ Battlefield | Defined$ ReplacedCard -SVar:ETBCheckSVar:Count$Valid Forest.YouCtrl,Plains.YouCtrl +K:ETBReplacement:Other:LandTapped +SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionPresent$ Forest.YouCtrl,Plains.YouCtrl | ConditionCompare$ EQ0 | SpellDescription$ CARDNAME enters the battlefield tapped unless you control a Forest or a Plains. A:AB$ Mana | Cost$ T | Produced$ W | SpellDescription$ Add {W} to your mana pool. A:AB$ Mana | Cost$ T | Produced$ G | SpellDescription$ Add {G} to your mana pool. SVar:Picture:http://www.wizards.com/global/images/magic/general/sunpetal_grove.jpg diff --git a/forge-gui/res/cardsfolder/w/woodland_cemetery.txt b/forge-gui/res/cardsfolder/w/woodland_cemetery.txt index 78aacc5eb90..67aabb80555 100644 --- a/forge-gui/res/cardsfolder/w/woodland_cemetery.txt +++ b/forge-gui/res/cardsfolder/w/woodland_cemetery.txt @@ -1,10 +1,8 @@ Name:Woodland Cemetery ManaCost:no cost Types:Land -R:Event$ Moved | ValidCard$ Card.Self | Destination$ Battlefield | ReplaceWith$ LandTapped | Description$ CARDNAME enters the battlefield tapped unless you control a Swamp or a Forest. -SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionCheckSVar$ ETBCheckSVar | ConditionSVarCompare$ EQ0 | References$ ETBCheckSVar | SubAbility$ MoveToPlay -SVar:MoveToPlay:DB$ ChangeZone | Hidden$ True | Origin$ All | Destination$ Battlefield | Defined$ ReplacedCard -SVar:ETBCheckSVar:Count$Valid Swamp.YouCtrl,Forest.YouCtrl +K:ETBReplacement:Other:LandTapped +SVar:LandTapped:DB$ Tap | Defined$ Self | ETB$ True | ConditionPresent$ Swamp.YouCtrl,Forest.YouCtrl | ConditionCompare$ EQ0 | SpellDescription$ CARDNAME enters the battlefield tapped unless you control a Swamp or a Forest. A:AB$ Mana | Cost$ T | Produced$ B | SpellDescription$ Add {B} to your mana pool. A:AB$ Mana | Cost$ T | Produced$ G | SpellDescription$ Add {G} to your mana pool. SVar:Picture:http://www.wizards.com/global/images/magic/general/woodland_cemetery.jpg