[ONE] Implement Dragonwing Glider

This commit is contained in:
theelk801 2023-01-13 21:29:02 -05:00
parent 4d53595f07
commit 73037f710e
6 changed files with 119 additions and 1 deletions

View file

@ -0,0 +1,31 @@
package mage.abilities.keyword;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.CreateTokenAttachSourceEffect;
import mage.game.permanent.token.PhyrexianGermToken;
import mage.game.permanent.token.RebelRedToken;
/**
* @author TheElk801
*/
public class ForMirrodinAbility extends EntersBattlefieldTriggeredAbility {
public ForMirrodinAbility() {
super(new CreateTokenAttachSourceEffect(new RebelRedToken()));
}
public ForMirrodinAbility(final ForMirrodinAbility ability) {
super(ability);
}
@Override
public String getRule() {
return "For Mirrodin! <i>(When this Equipment enters the battlefield, " +
"create a 2/2 red Rebel creature token, then attach this to it.)</i>";
}
@Override
public ForMirrodinAbility copy() {
return new ForMirrodinAbility(this);
}
}

View file

@ -21,7 +21,7 @@ public class LivingWeaponAbility extends EntersBattlefieldTriggeredAbility {
}
@Override
public EntersBattlefieldTriggeredAbility copy() {
public LivingWeaponAbility copy() {
return new LivingWeaponAbility(this);
}
}

View file

@ -0,0 +1,28 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class RebelRedToken extends TokenImpl {
public RebelRedToken() {
super("Rebel Token", "2/2 red Rebel creature token");
this.power = new MageInt(2);
this.toughness = new MageInt(2);
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add(SubType.REBEL);
}
public RebelRedToken(final RebelRedToken token) {
super(token);
}
public RebelRedToken copy() {
return new RebelRedToken(this);
}
}