- Converted Blizzard to script.

This commit is contained in:
Sloth
2011-10-18 10:07:10 +00:00
parent b5f37803f3
commit 0f713c1dd1
3 changed files with 4 additions and 5 deletions

View File

@@ -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

View File

@@ -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) {

View File

@@ -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