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,14 +42,13 @@ import mage.cards.CardImpl;
public class [=$classname=] extends CardImpl<[=$classname=]> { public class [=$classname=] extends CardImpl<[=$classname=]> {
public [=$classname=] (UUID ownerId) { 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.expansionSetCode = "[=$setcode=]";
this.subtype.add("");[= $colors=] this.subtype.add("");[= $colors=]
[=if (defined($power)) { [=if (defined($power)) {
$OUT .= "this.power = new MageInt($power);"; $OUT .= "this.power = new MageInt($power);\n";
}=] }=][=if (defined($toughness)) {
[=if (defined($toughness)) { $OUT .= " this.toughness = new MageInt($toughness);";
$OUT .= "this.toughness = new MageInt($toughness);";
}=] }=]
} }

View file

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