mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
- Converted "CARDNAME enters the battlefield tapped unless you control a" keyword to an ETBtapped replacement effect.
This commit is contained in:
@@ -2991,46 +2991,6 @@ public class CardFactoryUtil {
|
||||
*
|
||||
*/
|
||||
public static final void parseKeywords(final Card card, final String cardName) {
|
||||
if (hasKeyword(card, "CARDNAME enters the battlefield tapped unless you control a") != -1) {
|
||||
final int n = hasKeyword(card,
|
||||
"CARDNAME enters the battlefield tapped unless you control a");
|
||||
final String parse = card.getKeyword().get(n).toString();
|
||||
|
||||
String splitString;
|
||||
if (parse.contains(" or a ")) {
|
||||
splitString = " or a ";
|
||||
} else {
|
||||
splitString = " or an ";
|
||||
}
|
||||
|
||||
final String[] types = parse.substring(60, parse.length() - 1).split(splitString);
|
||||
|
||||
card.addComesIntoPlayCommand(new Command() {
|
||||
private static final long serialVersionUID = 403635232455049834L;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
final List<Card> clICtrl = card.getOwner().getCardsIn(ZoneType.Battlefield);
|
||||
|
||||
boolean fnd = false;
|
||||
|
||||
for (int i = 0; i < clICtrl.size(); i++) {
|
||||
final Card c = clICtrl.get(i);
|
||||
for (final String type : types) {
|
||||
if (c.isType(type.trim())) {
|
||||
fnd = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!fnd) {
|
||||
// it enters the battlefield this way, and should not
|
||||
// fire triggers
|
||||
card.setTapped(true);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
if (hasKeyword(card, "Sunburst") != -1) {
|
||||
final Command sunburstCIP = new Command() {
|
||||
private static final long serialVersionUID = 1489845860231758299L;
|
||||
|
||||
@@ -2,7 +2,7 @@ Name:Arctic Foxes
|
||||
ManaCost:1 W
|
||||
Types:Creature Fox
|
||||
PT:1/1
|
||||
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ CantBeBlockedBy Creature.powerGE2 | CheckSVar$ X | SVarCompare$ GE1 | Description$ Creatures with power 2 or greater can't block CARDNAME as long as defending player controls a snow land.
|
||||
S:Mode$ Continuous | Affected$ Card.Self | AddHiddenKeyword$ CantBeBlockedBy Creature.powerGE2 | CheckSVar$ X | SVarCompare$ GE1 | Description$ Creatures with power 2 or greater can't block CARDNAME as long as defending player controls a snow land.
|
||||
SVar:X:Count$Valid Land.Snow+DefenderCtrl
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/arctic_foxes.jpg
|
||||
Oracle:Creatures with power 2 or greater can't block Arctic Foxes as long as defending player controls a snow land.
|
||||
@@ -1,7 +1,10 @@
|
||||
Name:Clifftop Retreat
|
||||
ManaCost:no cost
|
||||
Types:Land
|
||||
K:CARDNAME enters the battlefield tapped unless you control a Mountain or a Plains.
|
||||
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:AB$ Tap | Cost$ 0 | 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
|
||||
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
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
Name:Dragonskull Summit
|
||||
ManaCost:no cost
|
||||
Types:Land
|
||||
K:CARDNAME enters the battlefield tapped unless you control a Swamp or a Mountain.
|
||||
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:AB$ Tap | Cost$ 0 | 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
|
||||
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
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
Name:Drowned Catacomb
|
||||
ManaCost:no cost
|
||||
Types:Land
|
||||
K:CARDNAME enters the battlefield tapped unless you control an Island or a Swamp.
|
||||
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:AB$ Tap | Cost$ 0 | 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
|
||||
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
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
Name:Glacial Fortress
|
||||
ManaCost:no cost
|
||||
Types:Land
|
||||
K:CARDNAME enters the battlefield tapped unless you control a Plains or an Island.
|
||||
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:AB$ Tap | Cost$ 0 | 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
|
||||
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
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
Name:Hinterland Harbor
|
||||
ManaCost:no cost
|
||||
Types:Land
|
||||
K:CARDNAME enters the battlefield tapped unless you control a Forest or an Island.
|
||||
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:AB$ Tap | Cost$ 0 | 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
|
||||
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
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
Name:Isolated Chapel
|
||||
ManaCost:no cost
|
||||
Types:Land
|
||||
K:CARDNAME enters the battlefield tapped unless you control a Plains or a Swamp.
|
||||
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:AB$ Tap | Cost$ 0 | 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
|
||||
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
|
||||
|
||||
@@ -4,7 +4,7 @@ Types:Creature Elf Druid
|
||||
PT:1/1
|
||||
K:Level up:1 G
|
||||
K:maxLevel:5
|
||||
S:Mode$ Continuous | Affected$ Card.Self | SetPower$ 1 | SetToughness$ 2 | AddAbility$ Mana | CheckSVar$ X | SVarCompare$ EQ1 | Description$ LEVEL 1-4 1/2 CARDNAME has Tap: Add {G}{G} to your mana pool.
|
||||
S:Mode$ Continuous | Affected$ Card.Self | SetPower$ 1 | SetToughness$ 2 | AddAbility$ Mana | CheckSVar$ X | SVarCompare$ EQ1 | Description$ LEVEL 1-4 1/2 CARDNAME has "{T}: Add {G}{G} to your mana pool."
|
||||
S:Mode$ Continuous | Affected$ Card.Self | SetPower$ 1 | SetToughness$ 4 | CheckSVar$ Y | SVarCompare$ EQ1 | Description$ LEVEL 5+ 1/4 Elves you control have "{T}: Add {G}{G} to your mana pool."
|
||||
S:Mode$ Continuous | Affected$ Card.Elf+YouCtrl | AddAbility$ Mana | CheckSVar$ Y | SVarCompare$ EQ1
|
||||
SVar:Mana:AB$Mana | Cost$ T | Produced$ G | Amount$ 2 | SpellDescription$ Add {G}{G} to your mana pool.
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
Name:Rootbound Crag
|
||||
ManaCost:no cost
|
||||
Types:Land
|
||||
K:CARDNAME enters the battlefield tapped unless you control a Mountain or a Forest.
|
||||
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:AB$ Tap | Cost$ 0 | 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
|
||||
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
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
Name:Sulfur Falls
|
||||
ManaCost:no cost
|
||||
Types:Land
|
||||
K:CARDNAME enters the battlefield tapped unless you control an Island or a Mountain.
|
||||
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:AB$ Tap | Cost$ 0 | 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
|
||||
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
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
Name:Sunpetal Grove
|
||||
ManaCost:no cost
|
||||
Types:Land
|
||||
K:CARDNAME enters the battlefield tapped unless you control a Forest or a Plains.
|
||||
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:AB$ Tap | Cost$ 0 | 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
|
||||
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
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
Name:Woodland Cemetery
|
||||
ManaCost:no cost
|
||||
Types:Land
|
||||
K:CARDNAME enters the battlefield tapped unless you control a Swamp or a Forest.
|
||||
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:AB$ Tap | Cost$ 0 | 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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user