mage/Utils/cardClass.tmpl
Evan Kranzler 54203c16d3
[NEO] Implementing Compleated mechanic and hybrid phyrexian mana (ready for review) (#8677)
* [NEO] Implemented Tamiyo, Compleated Sage

* replaced PhyrexianManaCost calls with ManaCostsImpl calls

* updated phyrexian mana implementation

* added phyrexian hybrid symbol support

* updated starting loyalty implementation for planeswalkers

* change compleated to singleton

* implemented Compleated ability

* added some missing loyalty setters

* changed when loyalty is added to a walker to fix bugs

* slight change to some tests to fix them from failing

* fixed token issue
2022-02-10 10:25:23 -05:00

49 lines
1.2 KiB
Cheetah

package mage.cards.[=$cardNameFirstLetter=];
import java.util.UUID;[=
if ($power || $power eq 0) {
if ($planeswalker eq 'true') {
}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.setStartingLoyalty($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);
}
}