manadetecton fixes

This commit is contained in:
Loki 2010-12-21 20:14:30 +02:00
parent d1fc649d42
commit 33bc20af68
2 changed files with 11 additions and 10 deletions

View file

@ -42,13 +42,12 @@ import mage.cards.CardImpl;
public class [=$classname=] extends CardImpl<[=$classname=]> {
public [=$classname=] (UUID ownerId) {
super(ownerId, [=$collector=], "[=$name=]", Rarity.[=$rarity=], new CardType[]{}, "[=$manacost=]");
super(ownerId, [=$collector=], "[=$name=]", Rarity.[=$rarity=], new CardType[]{[=$type=]}, "[=$manacost=]");
this.expansionSetCode = "[=$setcode=]";
this.subtype.add("");[= $colors=]
[=if (defined($power)) {
$OUT .= "this.power = new MageInt($power);";
}=]
[=if (defined($toughness)) {
$OUT .= "this.power = new MageInt($power);\n";
}=][=if (defined($toughness)) {
$OUT .= " this.toughness = new MageInt($toughness);";
}=]
}

View file

@ -217,6 +217,8 @@ $knownSets{'10E'} = 'tenth';
$knownSets{'WWK'} = 'worldwake';
$knownSets{'ZEN'} = 'zendikar';
$knownSets{'SOM'} = 'scarsofmirrodin';
$knownSets{'GPT'} = 'guildpact';
$knownSets{'DIS'} = 'dissension';
my %raritiesConversion;
$raritiesConversion{'C'} = 'COMMON';
@ -238,11 +240,11 @@ $mana{'Black or Red'} = 'B\\\\R';
$mana{'Red or Green'} = 'R\\\\G';
my %manatocolor;
$manatocolor{'Black'} = " creature.color.setBlack(true);";
$manatocolor{'Blue'} = " creature.color.setBlue(true);";
$manatocolor{'Green'} = " creature.color.setGreen(true);";
$manatocolor{'Red'} = " creature.color.setRed(true);";
$manatocolor{'White'} = " creature.color.setWhite(true);";
$manatocolor{'Black'} = " this.color.setBlack(true);";
$manatocolor{'Blue'} = " this.color.setBlue(true);";
$manatocolor{'Green'} = " this.color.setGreen(true);";
$manatocolor{'Red'} = " this.color.setRed(true);";
$manatocolor{'White'} = " this.color.setWhite(true);";
my %normalid;