mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[AFR] Implemented You See a Guard Approach
This commit is contained in:
parent
69daa558c7
commit
a1a46a088a
2 changed files with 45 additions and 0 deletions
44
Mage.Sets/src/mage/cards/y/YouSeeAGuardApproach.java
Normal file
44
Mage.Sets/src/mage/cards/y/YouSeeAGuardApproach.java
Normal file
|
@ -0,0 +1,44 @@
|
|||
package mage.cards.y;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.TapTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.keyword.HexproofAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class YouSeeAGuardApproach extends CardImpl {
|
||||
|
||||
public YouSeeAGuardApproach(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}");
|
||||
|
||||
// Choose one —
|
||||
// • Distract the Guard — Tap target creature.
|
||||
this.getSpellAbility().addEffect(new TapTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().getEffects().setFlavorWord("Distract the Guard");
|
||||
|
||||
// • Hide — Target creature you control gains hexproof until end of turn.
|
||||
Mode mode = new Mode(new GainAbilityTargetEffect(HexproofAbility.getInstance(), Duration.EndOfTurn));
|
||||
mode.addTarget(new TargetControlledCreaturePermanent());
|
||||
this.getSpellAbility().addMode(mode.setFlavorWord("Hide"));
|
||||
}
|
||||
|
||||
private YouSeeAGuardApproach(final YouSeeAGuardApproach card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public YouSeeAGuardApproach copy() {
|
||||
return new YouSeeAGuardApproach(this);
|
||||
}
|
||||
}
|
|
@ -52,6 +52,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Tiamat", 235, Rarity.MYTHIC, mage.cards.t.Tiamat.class));
|
||||
cards.add(new SetCardInfo("Trelasarra Moon Dancer", 236, Rarity.UNCOMMON, mage.cards.t.TrelasarraMoonDancer.class));
|
||||
cards.add(new SetCardInfo("Vorpal Sword", 124, Rarity.RARE, mage.cards.v.VorpalSword.class));
|
||||
cards.add(new SetCardInfo("You See a Guard Approach", 85, Rarity.COMMON, mage.cards.y.YouSeeAGuardApproach.class));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue