mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
[MKM] Implement Eliminate the Impossible
This commit is contained in:
parent
5bc36e5dd1
commit
05ea50c053
2 changed files with 74 additions and 0 deletions
73
Mage.Sets/src/mage/cards/e/EliminateTheImpossible.java
Normal file
73
Mage.Sets/src/mage/cards/e/EliminateTheImpossible.java
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
package mage.cards.e;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostAllEffect;
|
||||
import mage.abilities.effects.keyword.InvestigateEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Outcome;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class EliminateTheImpossible extends CardImpl {
|
||||
|
||||
public EliminateTheImpossible(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}");
|
||||
|
||||
// Investigate. Creatures your opponents control get -2/-0 until end of turn. If any of them are suspected, they're no longer suspected.
|
||||
this.getSpellAbility().addEffect(new InvestigateEffect());
|
||||
this.getSpellAbility().addEffect(new BoostAllEffect(
|
||||
-2, 0, Duration.EndOfTurn,
|
||||
StaticFilters.FILTER_OPPONENTS_PERMANENT_CREATURES, false
|
||||
));
|
||||
this.getSpellAbility().addEffect(new EliminateTheImpossibleEffect());
|
||||
}
|
||||
|
||||
private EliminateTheImpossible(final EliminateTheImpossible card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EliminateTheImpossible copy() {
|
||||
return new EliminateTheImpossible(this);
|
||||
}
|
||||
}
|
||||
|
||||
class EliminateTheImpossibleEffect extends OneShotEffect {
|
||||
|
||||
EliminateTheImpossibleEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "If any of them are suspected, they're no longer suspected";
|
||||
}
|
||||
|
||||
private EliminateTheImpossibleEffect(final EliminateTheImpossibleEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EliminateTheImpossibleEffect copy() {
|
||||
return new EliminateTheImpossibleEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
for (Permanent permanent : game.getBattlefield().getActivePermanents(
|
||||
StaticFilters.FILTER_OPPONENTS_PERMANENT_CREATURE,
|
||||
source.getControllerId(), source, game
|
||||
)) {
|
||||
if (permanent.isSuspected()) {
|
||||
permanent.setSuspected(false, game, source);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -62,6 +62,7 @@ public final class MurdersAtKarlovManor extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Doppelgang", 198, Rarity.RARE, mage.cards.d.Doppelgang.class));
|
||||
cards.add(new SetCardInfo("Drag the Canal", 199, Rarity.RARE, mage.cards.d.DragTheCanal.class));
|
||||
cards.add(new SetCardInfo("Elegant Parlor", 260, Rarity.RARE, mage.cards.e.ElegantParlor.class));
|
||||
cards.add(new SetCardInfo("Eliminate the Impossible", 54, Rarity.UNCOMMON, mage.cards.e.EliminateTheImpossible.class));
|
||||
cards.add(new SetCardInfo("Escape Tunnel", 261, Rarity.COMMON, mage.cards.e.EscapeTunnel.class));
|
||||
cards.add(new SetCardInfo("Essence of Antiquity", 15, Rarity.UNCOMMON, mage.cards.e.EssenceOfAntiquity.class));
|
||||
cards.add(new SetCardInfo("Ezrim, Agency Chief", 202, Rarity.RARE, mage.cards.e.EzrimAgencyChief.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue