From fbee4e29eefc33ff538c83c771164bc91147dd8f Mon Sep 17 00:00:00 2001 From: North Date: Sun, 17 Jul 2011 17:15:23 +0300 Subject: [PATCH] cardClass.tmpl fix --- Utils/cardClass.tmpl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Utils/cardClass.tmpl b/Utils/cardClass.tmpl index b4f9544bdd0..09d0f481406 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 (defined($power)) { +if ($power) { $OUT .= "\nimport mage.MageInt;" } =][=$abilitiesImports=] @@ -44,14 +44,13 @@ 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 (defined($power)) { - $OUT .= " this.power = new MageInt($power);\n"; + this.expansionSetCode = "[=$expansionSetCode=]";[=$subType=][=$colors=][= +if ($power) { + $OUT .= "\n this.power = new MageInt($power);"; } =][= -if (defined($toughness)) { - $OUT .= " this.toughness = new MageInt($toughness);"; +if ($toughness) { + $OUT .= "\n this.toughness = new MageInt($toughness);"; } =][=$abilities=] }