From 663c858604a9c0e08ee29f8e86f0891fd7ec1627 Mon Sep 17 00:00:00 2001 From: North Date: Mon, 25 Jul 2011 22:27:27 +0300 Subject: [PATCH] fixed cardClass.tmpl --- Utils/cardClass.tmpl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Utils/cardClass.tmpl b/Utils/cardClass.tmpl index 09d0f48140..03f8ef1578 100644 --- a/Utils/cardClass.tmpl +++ b/Utils/cardClass.tmpl @@ -30,7 +30,7 @@ package mage.sets.[=$set=]; import java.util.UUID; import mage.Constants.CardType; import mage.Constants.Rarity;[= -if ($power) { +if ($power || $power eq 0) { $OUT .= "\nimport mage.MageInt;" } =][=$abilitiesImports=] @@ -45,11 +45,8 @@ public class [=$className=] extends CardImpl<[=$className=]> { public [=$className=](UUID ownerId) { super(ownerId, [=$cardNumber=], "[=$name=]", Rarity.[=$rarity=], new CardType[]{[=$type=]}, "[=$manaCost=]"); this.expansionSetCode = "[=$expansionSetCode=]";[=$subType=][=$colors=][= -if ($power) { +if ($power || $power eq 0) { $OUT .= "\n this.power = new MageInt($power);"; -} -=][= -if ($toughness) { $OUT .= "\n this.toughness = new MageInt($toughness);"; } =][=$abilities=]