mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
fixed cardClass.tmpl
This commit is contained in:
parent
f8d9086529
commit
663c858604
1 changed files with 2 additions and 5 deletions
|
@ -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 ($power) {
|
if ($power || $power eq 0) {
|
||||||
$OUT .= "\nimport mage.MageInt;"
|
$OUT .= "\nimport mage.MageInt;"
|
||||||
}
|
}
|
||||||
=][=$abilitiesImports=]
|
=][=$abilitiesImports=]
|
||||||
|
@ -45,11 +45,8 @@ 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 ($power || $power eq 0) {
|
||||||
$OUT .= "\n this.power = new MageInt($power);";
|
$OUT .= "\n this.power = new MageInt($power);";
|
||||||
}
|
|
||||||
=][=
|
|
||||||
if ($toughness) {
|
|
||||||
$OUT .= "\n this.toughness = new MageInt($toughness);";
|
$OUT .= "\n this.toughness = new MageInt($toughness);";
|
||||||
}
|
}
|
||||||
=][=$abilities=]
|
=][=$abilities=]
|
||||||
|
|
Loading…
Reference in a new issue