|
| 1 | +package mage.cards.h; |
| 2 | + |
| 3 | +import java.util.UUID; |
| 4 | +import mage.MageInt; |
| 5 | +import mage.constants.SubType; |
| 6 | +import mage.target.common.TargetCreaturePermanent; |
| 7 | +import mage.abilities.common.EntersPreparedAbility; |
| 8 | +import mage.abilities.effects.common.continuous.BoostTargetEffect; |
| 9 | +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; |
| 10 | +import mage.abilities.keyword.FirstStrikeAbility; |
| 11 | +import mage.abilities.keyword.FlyingAbility; |
| 12 | +import mage.cards.CardSetInfo; |
| 13 | +import mage.cards.PrepareCard; |
| 14 | +import mage.constants.CardType; |
| 15 | + |
| 16 | +/** |
| 17 | + * |
| 18 | + * @author muz |
| 19 | + */ |
| 20 | +public final class HonorboundPage extends PrepareCard { |
| 21 | + |
| 22 | + public HonorboundPage(UUID ownerId, CardSetInfo setInfo) { |
| 23 | + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}", "Forum's Favor", new CardType[]{CardType.SORCERY}, "{W}"); |
| 24 | + |
| 25 | + this.subtype.add(SubType.CAT); |
| 26 | + this.subtype.add(SubType.CLERIC); |
| 27 | + this.power = new MageInt(3); |
| 28 | + this.toughness = new MageInt(3); |
| 29 | + |
| 30 | + // First strike |
| 31 | + this.addAbility(FirstStrikeAbility.getInstance()); |
| 32 | + |
| 33 | + // This creature enters prepared. |
| 34 | + this.addAbility(new EntersPreparedAbility()); |
| 35 | + |
| 36 | + // Forum's Favor |
| 37 | + // Sorcery {W} |
| 38 | + // Target creature gets +1/+0 and gains flying until end of turn. |
| 39 | + this.getSpellAbility().addEffect(new BoostTargetEffect(1, 0) |
| 40 | + .setText("target creature gets +1/+0")); |
| 41 | + this.getSpellAbility().addEffect(new GainAbilityTargetEffect(FlyingAbility.getInstance()) |
| 42 | + .setText("and gains flying until end of turn")); |
| 43 | + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); |
| 44 | + } |
| 45 | + |
| 46 | + private HonorboundPage(final HonorboundPage card) { |
| 47 | + super(card); |
| 48 | + } |
| 49 | + |
| 50 | + @Override |
| 51 | + public HonorboundPage copy() { |
| 52 | + return new HonorboundPage(this); |
| 53 | + } |
| 54 | +} |
0 commit comments