cardClass.tmpl fix

This commit is contained in:
North 2011-07-17 17:15:23 +03:00
parent fe4a78cbe5
commit fbee4e29ee

View file

@ -30,7 +30,7 @@ package mage.sets.[=$set=];
import java.util.UUID; import java.util.UUID;
import mage.Constants.CardType; import mage.Constants.CardType;
import mage.Constants.Rarity;[= import mage.Constants.Rarity;[=
if (defined($power)) { if ($power) {
$OUT .= "\nimport mage.MageInt;" $OUT .= "\nimport mage.MageInt;"
} }
=][=$abilitiesImports=] =][=$abilitiesImports=]
@ -44,14 +44,13 @@ public class [=$className=] extends CardImpl<[=$className=]> {
public [=$className=](UUID ownerId) { public [=$className=](UUID ownerId) {
super(ownerId, [=$cardNumber=], "[=$name=]", Rarity.[=$rarity=], new CardType[]{[=$type=]}, "[=$manaCost=]"); super(ownerId, [=$cardNumber=], "[=$name=]", Rarity.[=$rarity=], new CardType[]{[=$type=]}, "[=$manaCost=]");
this.expansionSetCode = "[=$expansionSetCode=]";[=$subType=][=$colors=] this.expansionSetCode = "[=$expansionSetCode=]";[=$subType=][=$colors=][=
[= if ($power) {
if (defined($power)) { $OUT .= "\n this.power = new MageInt($power);";
$OUT .= " this.power = new MageInt($power);\n";
} }
=][= =][=
if (defined($toughness)) { if ($toughness) {
$OUT .= " this.toughness = new MageInt($toughness);"; $OUT .= "\n this.toughness = new MageInt($toughness);";
} }
=][=$abilities=] =][=$abilities=]
} }