[BFZ] Implemented Lantern Scout and Hero of Goma Fada. Updated a couple older Allies. Updated Avacyn, Angel of Hope to match oracle text.

This commit is contained in:
fireshoes 2015-09-02 23:44:23 -05:00
parent 7627935d93
commit 5fca9dac06
5 changed files with 393 additions and 243 deletions

View file

@ -28,10 +28,6 @@
package mage.sets.avacynrestored; package mage.sets.avacynrestored;
import java.util.UUID; import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.MageInt; import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.Effect; import mage.abilities.effects.Effect;
@ -40,6 +36,10 @@ import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.IndestructibleAbility; import mage.abilities.keyword.IndestructibleAbility;
import mage.abilities.keyword.VigilanceAbility; import mage.abilities.keyword.VigilanceAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.filter.common.FilterControlledPermanent; import mage.filter.common.FilterControlledPermanent;
@ -57,13 +57,15 @@ public class AvacynAngelOfHope extends CardImpl {
this.power = new MageInt(8); this.power = new MageInt(8);
this.toughness = new MageInt(8); this.toughness = new MageInt(8);
// Flying, vigilance, indestructible
this.addAbility(FlyingAbility.getInstance()); this.addAbility(FlyingAbility.getInstance());
this.addAbility(VigilanceAbility.getInstance()); this.addAbility(VigilanceAbility.getInstance());
this.addAbility(IndestructibleAbility.getInstance());
// Avacyn, Angel of Hope and other permanents you control are indestructible. // Other permanents you control are indestructible.
FilterControlledPermanent filter = new FilterControlledPermanent("Avacyn, Angel of Hope and other permanents you control"); FilterControlledPermanent filter = new FilterControlledPermanent("Other permanents you control");
Effect effect = new GainAbilityAllEffect(IndestructibleAbility.getInstance(), Duration.WhileOnBattlefield, filter, false); Effect effect = new GainAbilityAllEffect(IndestructibleAbility.getInstance(), Duration.WhileOnBattlefield, filter, true);
effect.setText("{this} and other permanents you control are indestructible"); effect.setText("Other permanents you control are indestructible");
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect)); this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
} }

View file

@ -0,0 +1,73 @@
/*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.sets.battleforzendikar;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AllyEntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.continuous.GainAbilityAllEffect;
import mage.abilities.keyword.IndestructibleAbility;
import mage.cards.CardImpl;
import mage.constants.AbilityWord;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Rarity;
import mage.filter.common.FilterControlledCreaturePermanent;
/**
*
* @author fireshoes
*/
public class HeroOfGomaFada extends CardImpl {
public HeroOfGomaFada(UUID ownerId) {
super(ownerId, 31, "Hero of Goma Fada", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{4}{W}");
this.expansionSetCode = "BFZ";
this.subtype.add("Human");
this.subtype.add("Knight");
this.subtype.add("Ally");
this.power = new MageInt(4);
this.toughness = new MageInt(3);
// <i>Rally</i> - Whenever Hero of Goma Fada or another Ally enters the battlefield under your control, creatures you control gain indestructible until end of turn.
Ability ability = new AllyEntersBattlefieldTriggeredAbility(
new GainAbilityAllEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn, new FilterControlledCreaturePermanent()), false);
ability.setAbilityWord(AbilityWord.RALLY);
this.addAbility(ability);
}
public HeroOfGomaFada(final HeroOfGomaFada card) {
super(card);
}
@Override
public HeroOfGomaFada copy() {
return new HeroOfGomaFada(this);
}
}

View file

@ -0,0 +1,82 @@
/*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.sets.battleforzendikar;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AllyEntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.continuous.GainAbilityAllEffect;
import mage.abilities.keyword.LifelinkAbility;
import mage.cards.CardImpl;
import mage.constants.AbilityWord;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Rarity;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.CardIdPredicate;
import mage.filter.predicate.mageobject.SubtypePredicate;
/**
*
* @author fireshoes
*/
public class LanternScout extends CardImpl {
public LanternScout(UUID ownerId) {
super(ownerId, 37, "Lantern Scout", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{2}{W}");
this.expansionSetCode = "BFZ";
this.subtype.add("Human");
this.subtype.add("Scout");
this.subtype.add("Ally");
this.power = new MageInt(3);
this.toughness = new MageInt(2);
FilterPermanent filter = new FilterPermanent("{this} or another Ally");
filter.add(Predicates.or(
new CardIdPredicate(this.getId()),
new SubtypePredicate("Ally")));
// <i>Rally</i> - Whenever Lantern Scout or another Ally enters the battlefield under your control, creatures you control gain lifelink until end of turn.
Ability ability = new AllyEntersBattlefieldTriggeredAbility(
new GainAbilityAllEffect(LifelinkAbility.getInstance(), Duration.EndOfTurn, new FilterControlledCreaturePermanent()), false);
ability.setAbilityWord(AbilityWord.RALLY);
this.addAbility(ability);
}
public LanternScout(final LanternScout card) {
super(card);
}
@Override
public LanternScout copy() {
return new LanternScout(this);
}
}

View file

@ -1,156 +1,146 @@
/* /*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without modification, are * Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met: * permitted provided that the following conditions are met:
* *
* 1. Redistributions of source code must retain the above copyright notice, this list of * 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer. * conditions and the following disclaimer.
* *
* 2. Redistributions in binary form must reproduce the above copyright notice, this list * 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials * of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution. * provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* The views and conclusions contained in the software and documentation are those of the * The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed * authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com. * or implied, of BetaSteward_at_googlemail.com.
*/ */
package mage.sets.zendikar; package mage.sets.zendikar;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
import mage.MageInt;
import mage.constants.CardType; import mage.abilities.Ability;
import mage.constants.Rarity; import mage.abilities.common.AllyEntersBattlefieldTriggeredAbility;
import mage.MageInt; import mage.abilities.effects.OneShotEffect;
import mage.abilities.Ability; import mage.cards.Card;
import mage.abilities.common.EntersBattlefieldAllTriggeredAbility; import mage.cards.CardImpl;
import mage.abilities.effects.OneShotEffect; import mage.cards.Cards;
import mage.cards.Card; import mage.cards.CardsImpl;
import mage.cards.CardImpl; import mage.constants.CardType;
import mage.cards.Cards; import mage.constants.Outcome;
import mage.cards.CardsImpl; import mage.constants.Rarity;
import mage.constants.Outcome; import mage.constants.Zone;
import mage.constants.Zone; import mage.filter.FilterCard;
import mage.filter.FilterCard; import mage.filter.common.FilterControlledPermanent;
import mage.filter.FilterPermanent; import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.filter.common.FilterControlledPermanent; import mage.game.Game;
import mage.filter.predicate.Predicates; import mage.players.Player;
import mage.filter.predicate.mageobject.CardIdPredicate; import mage.target.TargetCard;
import mage.filter.predicate.mageobject.SubtypePredicate; import mage.target.TargetPlayer;
import mage.game.Game;
import mage.players.Player; /**
import mage.target.TargetCard; *
import mage.target.TargetPlayer; * @author jeffwadsworth
*/
/** public class BalaGedThief extends CardImpl {
*
* @author jeffwadsworth public BalaGedThief(UUID ownerId) {
*/ super(ownerId, 79, "Bala Ged Thief", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{3}{B}");
public class BalaGedThief extends CardImpl { this.expansionSetCode = "ZEN";
this.subtype.add("Human");
public BalaGedThief(UUID ownerId) { this.subtype.add("Rogue");
super(ownerId, 79, "Bala Ged Thief", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{3}{B}"); this.subtype.add("Ally");
this.expansionSetCode = "ZEN";
this.subtype.add("Human"); this.power = new MageInt(2);
this.subtype.add("Rogue"); this.toughness = new MageInt(2);
this.subtype.add("Ally");
// Whenever Bala Ged Thief or another Ally enters the battlefield under your control, target player reveals a number of cards from his or her hand equal to the number of Allies you control. You choose one of them. That player discards that card.
this.power = new MageInt(2); Ability ability = new AllyEntersBattlefieldTriggeredAbility(new BalaGedThiefEffect(), false);
this.toughness = new MageInt(2); ability.addTarget(new TargetPlayer());
this.addAbility(ability);
FilterPermanent filter = new FilterPermanent("Bala Ged Thief or another Ally"); }
filter.add(Predicates.or(
new CardIdPredicate(this.getId()), public BalaGedThief(final BalaGedThief card) {
new SubtypePredicate("Ally"))); super(card);
}
// Whenever Bala Ged Thief or another Ally enters the battlefield under your control, target player reveals a number of cards from his or her hand equal to the number of Allies you control. You choose one of them. That player discards that card.
Ability ability = new EntersBattlefieldAllTriggeredAbility(Zone.BATTLEFIELD, new BalaGedThiefEffect(), filter, false); @Override
TargetPlayer target = new TargetPlayer(); public BalaGedThief copy() {
ability.addTarget(target); return new BalaGedThief(this);
this.addAbility(ability); }
} }
public BalaGedThief(final BalaGedThief card) { class BalaGedThiefEffect extends OneShotEffect {
super(card);
} public BalaGedThiefEffect() {
super(Outcome.Discard);
@Override this.staticText = "target player reveals a number of cards from his or her hand equal to the number of Allies you control. You choose one of them. That player discards that card";
public BalaGedThief copy() { }
return new BalaGedThief(this);
} public BalaGedThiefEffect(final BalaGedThiefEffect effect) {
} super(effect);
}
class BalaGedThiefEffect extends OneShotEffect {
@Override
public BalaGedThiefEffect() { public BalaGedThiefEffect copy() {
super(Outcome.Discard); return new BalaGedThiefEffect(this);
this.staticText = "target player reveals a number of cards from his or her hand equal to the number of Allies you control. You choose one of them. That player discards that card"; }
}
@Override
public BalaGedThiefEffect(final BalaGedThiefEffect effect) { public boolean apply(Game game, Ability source) {
super(effect); Player targetPlayer = game.getPlayer(source.getFirstTarget());
}
if (targetPlayer == null) {
@Override return false;
public BalaGedThiefEffect copy() { }
return new BalaGedThiefEffect(this);
} Player you = game.getPlayer(source.getControllerId());
@Override FilterControlledPermanent filter = new FilterControlledPermanent();
public boolean apply(Game game, Ability source) { filter.add(new SubtypePredicate("Ally"));
Player targetPlayer = game.getPlayer(source.getFirstTarget());
int numberOfAllies = game.getBattlefield().countAll(filter, you.getId(), game);
if (targetPlayer == null) {
return false; Cards cardsInHand = new CardsImpl(Zone.PICK);
} cardsInHand.addAll(targetPlayer.getHand());
Player you = game.getPlayer(source.getControllerId()); int count = Math.min(cardsInHand.size(), numberOfAllies);
FilterControlledPermanent filter = new FilterControlledPermanent(); TargetCard target = new TargetCard(count, Zone.PICK, new FilterCard());
filter.add(new SubtypePredicate("Ally")); Cards revealedCards = new CardsImpl();
int numberOfAllies = game.getBattlefield().countAll(filter, you.getId(), game); if (targetPlayer.choose(Outcome.DrawCard, cardsInHand, target, game)) {
List<UUID> targets = target.getTargets();
Cards cardsInHand = new CardsImpl(Zone.PICK); for (UUID targetId : targets) {
cardsInHand.addAll(targetPlayer.getHand()); Card card = game.getCard(targetId);
if (card != null) {
int count = Math.min(cardsInHand.size(), numberOfAllies); revealedCards.add(card);
}
TargetCard target = new TargetCard(count, Zone.PICK, new FilterCard()); }
Cards revealedCards = new CardsImpl(); }
if (targetPlayer.choose(Outcome.DrawCard, cardsInHand, target, game)) { TargetCard targetInHand = new TargetCard(Zone.PICK, new FilterCard("card to discard"));
List<UUID> targets = target.getTargets();
for (UUID targetId : targets) { if (!revealedCards.isEmpty()) {
Card card = game.getCard(targetId); targetPlayer.revealCards("Bala Ged Thief", revealedCards, game);
if (card != null) { you.choose(Outcome.Neutral, revealedCards, targetInHand, game);
revealedCards.add(card); Card card = revealedCards.get(targetInHand.getFirstTarget(), game);
} if (card != null) {
} targetPlayer.discard(card, source, game);
} game.informPlayers(new StringBuilder("Bala Ged Thief: ").append(targetPlayer.getLogName()).append(" discarded ").append(card.getName()).toString());
}
TargetCard targetInHand = new TargetCard(Zone.PICK, new FilterCard("card to discard")); }
return true;
if (!revealedCards.isEmpty()) { }
targetPlayer.revealCards("Bala Ged Thief", revealedCards, game); }
you.choose(Outcome.Neutral, revealedCards, targetInHand, game);
Card card = revealedCards.get(targetInHand.getFirstTarget(), game);
if (card != null) {
targetPlayer.discard(card, source, game);
game.informPlayers(new StringBuilder("Bala Ged Thief: ").append(targetPlayer.getLogName()).append(" discarded ").append(card.getName()).toString());
}
}
return true;
}
}

View file

@ -1,79 +1,82 @@
/* /*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without modification, are * Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met: * permitted provided that the following conditions are met:
* *
* 1. Redistributions of source code must retain the above copyright notice, this list of * 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer. * conditions and the following disclaimer.
* *
* 2. Redistributions in binary form must reproduce the above copyright notice, this list * 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials * of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution. * provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* The views and conclusions contained in the software and documentation are those of the * The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed * authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com. * or implied, of BetaSteward_at_googlemail.com.
*/ */
package mage.sets.zendikar; package mage.sets.zendikar;
import java.util.UUID; import java.util.UUID;
import mage.MageInt;
import mage.constants.CardType; import mage.abilities.common.AllyEntersBattlefieldTriggeredAbility;
import mage.constants.Duration; import mage.abilities.effects.Effect;
import mage.constants.Rarity; import mage.abilities.effects.common.continuous.GainAbilityAllEffect;
import mage.MageInt; import mage.abilities.keyword.FirstStrikeAbility;
import mage.abilities.common.AllyEntersBattlefieldTriggeredAbility; import mage.cards.CardImpl;
import mage.abilities.effects.common.continuous.GainAbilityAllEffect; import mage.constants.CardType;
import mage.abilities.keyword.FirstStrikeAbility; import mage.constants.Duration;
import mage.cards.CardImpl; import mage.constants.Rarity;
import mage.constants.TargetController; import mage.constants.TargetController;
import mage.filter.common.FilterCreaturePermanent; import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.mageobject.SubtypePredicate; import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.filter.predicate.permanent.ControllerPredicate; import mage.filter.predicate.permanent.ControllerPredicate;
/** /**
* *
* @author North * @author North
*/ */
public class HighlandBerserker extends CardImpl { public class HighlandBerserker extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Ally creatures you control"); private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Ally creatures you control");
static { static {
filter.add(new SubtypePredicate("Ally")); filter.add(new SubtypePredicate("Ally"));
filter.add(new ControllerPredicate(TargetController.YOU)); filter.add(new ControllerPredicate(TargetController.YOU));
} }
public HighlandBerserker(UUID ownerId) { public HighlandBerserker(UUID ownerId) {
super(ownerId, 132, "Highland Berserker", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{1}{R}"); super(ownerId, 132, "Highland Berserker", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{1}{R}");
this.expansionSetCode = "ZEN"; this.expansionSetCode = "ZEN";
this.subtype.add("Human"); this.subtype.add("Human");
this.subtype.add("Berserker"); this.subtype.add("Berserker");
this.subtype.add("Ally"); this.subtype.add("Ally");
this.power = new MageInt(2); this.power = new MageInt(2);
this.toughness = new MageInt(1); this.toughness = new MageInt(1);
this.addAbility(new AllyEntersBattlefieldTriggeredAbility(new GainAbilityAllEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn, filter), true)); // Whenever Highland Berserker or another Ally enters the battlefield under your control, you may have Ally creatures you control gain first strike until end of turn.
} Effect effect = new GainAbilityAllEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn, filter);
effect.setText("you may have Ally creatures you control gain first strike until end of turn");
public HighlandBerserker(final HighlandBerserker card) { this.addAbility(new AllyEntersBattlefieldTriggeredAbility(effect, true));
super(card); }
}
public HighlandBerserker(final HighlandBerserker card) {
@Override super(card);
public HighlandBerserker copy() { }
return new HighlandBerserker(this);
} @Override
} public HighlandBerserker copy() {
return new HighlandBerserker(this);
}
}