- Converted Count$LowestLibrary to playXCount

This commit is contained in:
swordshine
2014-01-08 12:52:09 +00:00
parent fc508b3a27
commit 76cdfa9759
4 changed files with 4 additions and 19 deletions

View File

@@ -3,8 +3,7 @@ ManaCost:5 U U
Types:Creature Kraken Types:Creature Kraken
PT:4/8 PT:4/8
K:Shroud K:Shroud
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 4 | AddToughness$ 8 | CheckSVar$ X | SVarCompare$ LEY | Description$ CARDNAME gets +4/+8 as long as a library has twenty or fewer cards in it. S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 4 | AddToughness$ 8 | CheckSVar$ X | SVarCompare$ LE20 | Description$ CARDNAME gets +4/+8 as long as a library has twenty or fewer cards in it.
SVar:Y:Number$20 SVar:X:PlayerCountPlayers$LowestValidLibrary Card.YouOwn
SVar:X:Count$LowestLibrary
SVar:Picture:http://www.wizards.com/global/images/magic/general/isleback_spawn.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/isleback_spawn.jpg
Oracle:Shroud\nIsleback Spawn gets +4/+8 as long as a library has twenty or fewer cards in it. Oracle:Shroud\nIsleback Spawn gets +4/+8 as long as a library has twenty or fewer cards in it.

View File

@@ -5,9 +5,8 @@ K:Hideaway
T:Mode$ ChangesZone | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDig | TriggerDescription$ This land enters the battlefield tapped. When it does, look at the top four cards of your library, exile one face down, then put the rest on the bottom of your library. T:Mode$ ChangesZone | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDig | TriggerDescription$ This land enters the battlefield tapped. When it does, look at the top four cards of your library, exile one face down, then put the rest on the bottom of your library.
SVar:TrigDig:AB$ Dig | Cost$ 0 | Defined$ You | DigNum$ 4 | DestinationZone$ Exile | ExileFaceDown$ True | RememberChanged$ True SVar:TrigDig:AB$ Dig | Cost$ 0 | Defined$ You | DigNum$ 4 | DestinationZone$ Exile | ExileFaceDown$ True | RememberChanged$ True
A:AB$ Mana | Cost$ T | Produced$ U | SpellDescription$ Add {U} to your mana pool. A:AB$ Mana | Cost$ T | Produced$ U | SpellDescription$ Add {U} to your mana pool.
A:AB$ Play | Cost$ U T | Defined$ Remembered | Amount$ All | Controller$ You | WithoutManaCost$ True | Optional$ True | ConditionCheckSVar$ X | ConditionSVarCompare$ LEY | ForgetRemembered$ True | References$ X,Y | SpellDescription$ You may play the exiled card without paying its mana cost if a library has twenty or fewer cards in it. A:AB$ Play | Cost$ U T | Defined$ Remembered | Amount$ All | Controller$ You | WithoutManaCost$ True | Optional$ True | ConditionCheckSVar$ X | ConditionSVarCompare$ LE20 | ForgetRemembered$ True | References$ X | SpellDescription$ You may play the exiled card without paying its mana cost if a library has twenty or fewer cards in it.
SVar:Y:Number$20 SVar:X:PlayerCountPlayers$LowestValidLibrary Card.YouOwn
SVar:X:Count$LowestLibrary
SVar:RemRandomDeck:True SVar:RemRandomDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/shelldock_isle.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/shelldock_isle.jpg
Oracle:Hideaway (This land enters the battlefield tapped. When it does, look at the top four cards of your library, exile one face down, then put the rest on the bottom of your library.)\n{T}: Add {U} to your mana pool.\n{U}, {T}: You may play the exiled card without paying its mana cost if a library has twenty or fewer cards in it. Oracle:Hideaway (This land enters the battlefield tapped. When it does, look at the top four cards of your library, exile one face down, then put the rest on the bottom of your library.)\n{T}: Add {U} to your mana pool.\n{U}, {T}: You may play the exiled card without paying its mana cost if a library has twenty or fewer cards in it.

View File

@@ -1173,11 +1173,6 @@ public class CardFactoryUtil {
} }
return enchantedControllerInPlay.size(); return enchantedControllerInPlay.size();
} }
// Count$LowestLibrary
if (sq[0].contains("LowestLibrary")) {
return Aggregates.min(cc.getGame().getPlayers(), Player.Accessors.countCardsInZone(ZoneType.Library));
}
// Count$MonstrosityMagnitude // Count$MonstrosityMagnitude
if (sq[0].contains("MonstrosityMagnitude")) { if (sq[0].contains("MonstrosityMagnitude")) {

View File

@@ -2745,14 +2745,6 @@ public class Player extends GameEntity implements Comparable<Player> {
} }
}; };
public static Function<Player, Integer> countCardsInZone(final ZoneType zone) {
return new Function<Player, Integer>() {
@Override
public Integer apply(Player input) {
return input.getZone(zone).size();
}
};
}
} }
/** /**