mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Implemented Fight as One
This commit is contained in:
parent
4911398c89
commit
2dcc5dd453
2 changed files with 65 additions and 0 deletions
64
Mage.Sets/src/mage/cards/f/FightAsOne.java
Normal file
64
Mage.Sets/src/mage/cards/f/FightAsOne.java
Normal file
|
@ -0,0 +1,64 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.keyword.IndestructibleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class FightAsOne extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledCreaturePermanent(SubType.HUMAN);
|
||||
private static final FilterPermanent filter2 = new FilterControlledCreaturePermanent("non-Human creature you control");
|
||||
|
||||
static {
|
||||
filter2.add(Predicates.not(SubType.HUMAN.getPredicate()));
|
||||
}
|
||||
|
||||
public FightAsOne(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{W}");
|
||||
|
||||
// Choose one or both—
|
||||
this.getSpellAbility().getModes().setMinModes(1);
|
||||
this.getSpellAbility().getModes().setMinModes(2);
|
||||
|
||||
// • Target Human creature you control gets +1/+1 and gains indestructible until end of turn.
|
||||
this.getSpellAbility().addEffect(new BoostTargetEffect(1, 1)
|
||||
.setText("Target Human creature you control gets +1/+1"));
|
||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(
|
||||
IndestructibleAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("and gains indestructible until end of turn"));
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(filter));
|
||||
|
||||
// • Target non-Human creature you control gets +1/+1 and gains indestructible until end of turn.
|
||||
Mode mode = new Mode(new BoostTargetEffect(1, 1)
|
||||
.setText("Target non-Human creature you control gets +1/+1"));
|
||||
mode.addEffect(new GainAbilityTargetEffect(
|
||||
IndestructibleAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("and gains indestructible until end of turn"));
|
||||
mode.addTarget(new TargetPermanent(filter2));
|
||||
this.getSpellAbility().addMode(mode);
|
||||
}
|
||||
|
||||
private FightAsOne(final FightAsOne card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FightAsOne copy() {
|
||||
return new FightAsOne(this);
|
||||
}
|
||||
}
|
|
@ -88,6 +88,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Everquill Phoenix", 114, Rarity.RARE, mage.cards.e.EverquillPhoenix.class));
|
||||
cards.add(new SetCardInfo("Exuberant Wolfbear", 151, Rarity.UNCOMMON, mage.cards.e.ExuberantWolfbear.class));
|
||||
cards.add(new SetCardInfo("Fertilid", 152, Rarity.COMMON, mage.cards.f.Fertilid.class));
|
||||
cards.add(new SetCardInfo("Fight as One", 12, Rarity.UNCOMMON, mage.cards.f.FightAsOne.class));
|
||||
cards.add(new SetCardInfo("Flourishing Fox", 13, Rarity.UNCOMMON, mage.cards.f.FlourishingFox.class));
|
||||
cards.add(new SetCardInfo("Footfall Crater", 118, Rarity.UNCOMMON, mage.cards.f.FootfallCrater.class));
|
||||
cards.add(new SetCardInfo("Forbidden Friendship", 119, Rarity.COMMON, mage.cards.f.ForbiddenFriendship.class));
|
||||
|
|
Loading…
Reference in a new issue