mirror of
https://github.com/correl/mage.git
synced 2024-12-01 11:09:56 +00:00
50 lines
1.3 KiB
Cheetah
50 lines
1.3 KiB
Cheetah
package mage.cards.[=$cardNameFirstLetter=];
|
|
|
|
import java.util.UUID;[=
|
|
if ($power || $power eq 0) {
|
|
if ($planeswalker eq 'true') {
|
|
$OUT .= "\nimport mage.abilities.common.PlaneswalkerEntersWithLoyaltyCountersAbility;"
|
|
}else {
|
|
$OUT .= "\nimport mage.MageInt;"
|
|
}
|
|
}
|
|
if ($hasSubTypes eq 'true') {
|
|
$OUT .="\nimport mage.constants.SubType;"
|
|
}
|
|
if ($hasSuperTypes eq 'true') {
|
|
$OUT .="\nimport mage.constants.SuperType;"
|
|
}
|
|
=][=$abilitiesImports=]
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
|
|
/**
|
|
*
|
|
* @author [=$author=]
|
|
*/
|
|
public final class [=$className=] extends CardImpl {
|
|
|
|
public [=$className=](UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{[=$type=]}, "[=$manaCost=]");
|
|
[=$subType=][=$colors=][=
|
|
if ($power || $power eq 0) {
|
|
if ($planeswalker eq 'true') {
|
|
$OUT .= "\n this.addAbility(new PlaneswalkerEntersWithLoyaltyCountersAbility($power));";
|
|
} else {
|
|
$OUT .= "\n this.power = new MageInt($power);";
|
|
$OUT .= "\n this.toughness = new MageInt($toughness);";
|
|
}
|
|
}
|
|
=][=$abilities=]
|
|
}
|
|
|
|
private [=$className=](final [=$className=] card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public [=$className=] copy() {
|
|
return new [=$className=](this);
|
|
}
|
|
}
|