foul-magics/Mage/src/main/java/mage/game/permanent/token/AvatarToken.java

38 lines
1.3 KiB
Java

package mage.game.permanent.token;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.dynamicvalue.common.ControllerLifeCount;
import mage.abilities.effects.common.continuous.SetBasePowerToughnessSourceEffect;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubLayer;
import mage.constants.SubType;
import java.util.Arrays;
/**
* @author spjspj
*/
public final class AvatarToken extends TokenImpl {
public AvatarToken() {
super("Avatar Token", "white Avatar creature token. It has \"This creature's power and toughness are each equal to your life total.\"");
cardType.add(CardType.CREATURE);
subtype.add(SubType.AVATAR);
color.setWhite(true);
this.addAbility(new SimpleStaticAbility(new SetBasePowerToughnessSourceEffect(
ControllerLifeCount.instance, Duration.WhileOnBattlefield,
SubLayer.CharacteristicDefining_7a
).setText("this creature's power and toughness are each equal to your life total")));
availableImageSetCodes = Arrays.asList("LRW", "M10", "M11");
}
public AvatarToken(final AvatarToken token) {
super(token);
}
public AvatarToken copy() {
return new AvatarToken(this);
}
}