mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 05:09:16 -08:00
[EOE] Implement Invasive Maneuvers
This commit is contained in:
parent
1b1a112393
commit
f58f16d76d
2 changed files with 42 additions and 0 deletions
41
Mage.Sets/src/mage/cards/i/InvasiveManeuvers.java
Normal file
41
Mage.Sets/src/mage/cards/i/InvasiveManeuvers.java
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
package mage.cards.i;
|
||||
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class InvasiveManeuvers extends CardImpl {
|
||||
|
||||
private static final Condition condition
|
||||
= new PermanentsOnTheBattlefieldCondition(new FilterControlledPermanent(SubType.SPACECRAFT));
|
||||
|
||||
public InvasiveManeuvers(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R}");
|
||||
|
||||
// Invasive Maneuvers deals 3 damage to target creature. It deals 5 damage instead if you control a Spacecraft.
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new DamageTargetEffect(5), new DamageTargetEffect(3), condition,
|
||||
"{this} deals 3 damage to target creature. It deals 5 damage instead if you control a Spacecraft"
|
||||
));
|
||||
}
|
||||
|
||||
private InvasiveManeuvers(final InvasiveManeuvers card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public InvasiveManeuvers copy() {
|
||||
return new InvasiveManeuvers(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -128,6 +128,7 @@ public final class EdgeOfEternities extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Infinite Guideline Station", 348, Rarity.RARE, mage.cards.i.InfiniteGuidelineStation.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Insatiable Skittermaw", 108, Rarity.COMMON, mage.cards.i.InsatiableSkittermaw.class));
|
||||
cards.add(new SetCardInfo("Interceptor Mechan", 220, Rarity.UNCOMMON, mage.cards.i.InterceptorMechan.class));
|
||||
cards.add(new SetCardInfo("Invasive Maneuvers", 137, Rarity.UNCOMMON, mage.cards.i.InvasiveManeuvers.class));
|
||||
cards.add(new SetCardInfo("Island", 263, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("Island", 269, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Island", 270, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue