mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
[J21] Implemented Skyshroud Lookout
This commit is contained in:
parent
3be8c419ac
commit
106d0ea4bb
2 changed files with 77 additions and 0 deletions
76
Mage.Sets/src/mage/cards/s/SkyshroudLookout.java
Normal file
76
Mage.Sets/src/mage/cards/s/SkyshroudLookout.java
Normal file
|
@ -0,0 +1,76 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.keyword.ReachAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SkyshroudLookout extends CardImpl {
|
||||
|
||||
public SkyshroudLookout(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");
|
||||
|
||||
this.subtype.add(SubType.ELF);
|
||||
this.subtype.add(SubType.ARCHER);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Reach
|
||||
this.addAbility(ReachAbility.getInstance());
|
||||
|
||||
// When Skyshroud Lookout enters the battlefield, seek an Elf card.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SkyshroudLookoutEffect()));
|
||||
}
|
||||
|
||||
private SkyshroudLookout(final SkyshroudLookout card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SkyshroudLookout copy() {
|
||||
return new SkyshroudLookout(this);
|
||||
}
|
||||
}
|
||||
|
||||
class SkyshroudLookoutEffect extends OneShotEffect {
|
||||
|
||||
private static final FilterCard filter = new FilterCard();
|
||||
|
||||
static {
|
||||
filter.add(SubType.ELF.getPredicate());
|
||||
}
|
||||
|
||||
SkyshroudLookoutEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "seek an Elf card";
|
||||
}
|
||||
|
||||
private SkyshroudLookoutEffect(final SkyshroudLookoutEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SkyshroudLookoutEffect copy() {
|
||||
return new SkyshroudLookoutEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
return player != null && player.seekCard(filter, source, game);
|
||||
}
|
||||
}
|
|
@ -22,5 +22,6 @@ public final class JumpstartHistoricHorizons extends ExpansionSet {
|
|||
|
||||
cards.add(new SetCardInfo("Faceless Agent", 31, Rarity.COMMON, mage.cards.f.FacelessAgent.class));
|
||||
cards.add(new SetCardInfo("Manor Guardian", 16, Rarity.UNCOMMON, mage.cards.m.ManorGuardian.class));
|
||||
cards.add(new SetCardInfo("Skyshroud Lookout", 29, Rarity.UNCOMMON, mage.cards.s.SkyshroudLookout.class));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue