mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 20:59:14 -08:00
Implemented Frostwalk Bastion
This commit is contained in:
parent
e457aba61d
commit
05e486f762
2 changed files with 79 additions and 0 deletions
78
Mage.Sets/src/mage/cards/f/FrostwalkBastion.java
Normal file
78
Mage.Sets/src/mage/cards/f/FrostwalkBastion.java
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DealsDamageToACreatureTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.DontUntapInControllersNextUntapStepTargetEffect;
|
||||
import mage.abilities.effects.common.TapTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.BecomesCreatureSourceEffect;
|
||||
import mage.abilities.mana.ColorlessManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.game.permanent.token.TokenImpl;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class FrostwalkBastion extends CardImpl {
|
||||
|
||||
public FrostwalkBastion(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||
|
||||
this.addSuperType(SuperType.SNOW);
|
||||
|
||||
// {T}: Add {C}.
|
||||
this.addAbility(new ColorlessManaAbility());
|
||||
|
||||
// {1}{S}: Until end of turn, Frostwalk Bastion becomes a 2/3 Construct artifact creature. It's still a land.
|
||||
this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect(
|
||||
new FrostwalkBastionToken(), "land", Duration.EndOfTurn
|
||||
), new ManaCostsImpl("{1}{S}")));
|
||||
|
||||
// Whenever Frostwalk Bastion deals combat damage to a creature, tap that creature and it doesn't untap during its controller's next untap step.
|
||||
Ability ability = new DealsDamageToACreatureTriggeredAbility(
|
||||
new TapTargetEffect().setText("tap that creature"),
|
||||
true, false, true
|
||||
);
|
||||
ability.addEffect(new DontUntapInControllersNextUntapStepTargetEffect()
|
||||
.setText("and it doesn't untap during its controller's next untap step")
|
||||
);
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private FrostwalkBastion(final FrostwalkBastion card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FrostwalkBastion copy() {
|
||||
return new FrostwalkBastion(this);
|
||||
}
|
||||
}
|
||||
|
||||
class FrostwalkBastionToken extends TokenImpl {
|
||||
FrostwalkBastionToken() {
|
||||
super("Construct", "2/3 Construct artifact creature");
|
||||
cardType.add(CardType.ARTIFACT);
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add(SubType.CONSTRUCT);
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(3);
|
||||
}
|
||||
|
||||
private FrostwalkBastionToken(final FrostwalkBastionToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public FrostwalkBastionToken copy() {
|
||||
return new FrostwalkBastionToken(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -45,6 +45,7 @@ public final class ModernHorizons extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Fiery Islet", 238, Rarity.RARE, mage.cards.f.FieryIslet.class));
|
||||
cards.add(new SetCardInfo("Firebolt", 122, Rarity.UNCOMMON, mage.cards.f.Firebolt.class));
|
||||
cards.add(new SetCardInfo("Flusterstorm", 255, Rarity.RARE, mage.cards.f.Flusterstorm.class));
|
||||
cards.add(new SetCardInfo("Frostwalk Bastion", 240, Rarity.UNCOMMON, mage.cards.f.FrostwalkBastion.class));
|
||||
cards.add(new SetCardInfo("Generous Gift", 11, Rarity.UNCOMMON, mage.cards.g.GenerousGift.class));
|
||||
cards.add(new SetCardInfo("Goblin Engineer", 128, Rarity.RARE, mage.cards.g.GoblinEngineer.class));
|
||||
cards.add(new SetCardInfo("Goblin Matron", 129, Rarity.UNCOMMON, mage.cards.g.GoblinMatron.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue