[ACR] Implement Towering Viewpoint

This commit is contained in:
theelk801 2024-06-20 09:42:09 -04:00
parent b7b93e0f4d
commit ebc0ec0c9f
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,53 @@
package mage.cards.t;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.keyword.DefenderAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.ReachAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ToweringViewpoint extends CardImpl {
public ToweringViewpoint(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{2}");
this.subtype.add(SubType.WALL);
this.power = new MageInt(0);
this.toughness = new MageInt(4);
// Defender
this.addAbility(DefenderAbility.getInstance());
// Reach
this.addAbility(ReachAbility.getInstance());
// Leap of Faith -- {3}: Target creature gains flying until end of turn.
Ability ability = new SimpleActivatedAbility(
new GainAbilityTargetEffect(FlyingAbility.getInstance()), new GenericManaCost(3)
);
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability.withFlavorWord("Leap of Faith"));
}
private ToweringViewpoint(final ToweringViewpoint card) {
super(card);
}
@Override
public ToweringViewpoint copy() {
return new ToweringViewpoint(this);
}
}

View file

@ -72,6 +72,7 @@ public final class AssassinsCreed extends ExpansionSet {
cards.add(new SetCardInfo("Terminate", 98, Rarity.UNCOMMON, mage.cards.t.Terminate.class));
cards.add(new SetCardInfo("The Animus", 69, Rarity.RARE, mage.cards.t.TheAnimus.class));
cards.add(new SetCardInfo("The Spear of Leonidas", 38, Rarity.RARE, mage.cards.t.TheSpearOfLeonidas.class));
cards.add(new SetCardInfo("Towering Viewpoint", 77, Rarity.UNCOMMON, mage.cards.t.ToweringViewpoint.class));
cards.add(new SetCardInfo("Waterlogged Grove", 116, Rarity.RARE, mage.cards.w.WaterloggedGrove.class));
}
}