mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Converted Blizzard to script.
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
Name:Blizzard
|
||||
ManaCost:G G
|
||||
Types:Enchantment
|
||||
Text:Cast CARDNAME only if you control a snow land.\r\n\r\nCreatures with flying don't untap during their controllers' untap steps.
|
||||
Text:Creatures with flying don't untap during their controllers' untap steps.
|
||||
K:Cumulative upkeep:2
|
||||
S:Mode$ CantBeCast | ValidCard$ Card.Self | EffectZone$ Hand | CheckSVar$ X | SVarCompare$ GE1 | Description$ Cast CARDNAME only if you control a snow land.
|
||||
K:Permanents don't untap during their controllers' untap steps:Creature.withFlying
|
||||
SVar:X:Count$Valid Snow.Land+YouCtrl
|
||||
SVar:RemRandomDeck:True
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/blizzard.jpg
|
||||
|
||||
@@ -63,6 +63,7 @@ abstract public class Spell extends SpellAbility implements java.io.Serializable
|
||||
|
||||
//CantBeCast static abilities
|
||||
CardList allp = AllZoneUtil.getCardsIn(Zone.Battlefield);
|
||||
allp.add(card);
|
||||
for (Card ca : allp) {
|
||||
ArrayList<StaticAbility> staticAbilities = ca.getStaticAbilities();
|
||||
for (StaticAbility stAb : staticAbilities) {
|
||||
|
||||
@@ -187,10 +187,6 @@ public class Spell_Permanent extends Spell {
|
||||
if (source.getName().equals("Serra Avenger")) {
|
||||
if (turn.equals(source.getController()) && turn.getTurn() <= 3)
|
||||
return false;
|
||||
} else if (source.getName().equals("Blizzard")) {
|
||||
CardList lands = AllZoneUtil.getPlayerLandsInPlay(source.getController());
|
||||
lands = lands.getType("Snow");
|
||||
if (lands.size() == 0) return false;
|
||||
}
|
||||
|
||||
// Flash handled by super.canPlay
|
||||
|
||||
Reference in New Issue
Block a user