Tokens and command objects reworked (part 2 of 2, tokens/emblems)

This commit is contained in:
Oleg Agafonov 2023-05-08 02:18:42 +04:00
parent 5f55c7c667
commit f2d93f224f
591 changed files with 1368 additions and 4425 deletions

View file

@ -1,4 +1,3 @@
package mage.game.command.emblems;
import mage.abilities.Ability;
@ -13,14 +12,13 @@ import mage.filter.common.FilterCreaturePermanent;
import mage.game.command.Emblem;
/**
*
* @author spjspj
*/
public final class YodaEmblem extends Emblem {
// You get an emblem with "Hexproof, you and your creatures have."
public YodaEmblem() {
this.setName("Emblem Yoda, Jedi Master");
super("Emblem Yoda, Jedi Master");
Effect effect = new GainAbilityControllerEffect(HexproofAbility.getInstance(), Duration.EndOfGame);
effect.setText("Hexproof, you");
Ability ability = new SimpleStaticAbility(Zone.COMMAND, effect);
@ -29,4 +27,13 @@ public final class YodaEmblem extends Emblem {
ability.addEffect(effect);
getAbilities().add(ability);
}
private YodaEmblem(final YodaEmblem card) {
super(card);
}
@Override
public YodaEmblem copy() {
return new YodaEmblem(this);
}
}