mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[STX] Implemented Harness Infinity
This commit is contained in:
parent
1d4fc1369a
commit
910372013a
2 changed files with 72 additions and 0 deletions
71
Mage.Sets/src/mage/cards/h/HarnessInfinity.java
Normal file
71
Mage.Sets/src/mage/cards/h/HarnessInfinity.java
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.ExileSpellEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.cards.Cards;
|
||||
import mage.cards.CardsImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class HarnessInfinity extends CardImpl {
|
||||
|
||||
public HarnessInfinity(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{B}{B}{B}{G}{G}{G}");
|
||||
|
||||
// Exchange your hand and graveyard.
|
||||
this.getSpellAbility().addEffect(new HarnessInfinityEffect());
|
||||
|
||||
// Exile Harness Infinity.
|
||||
this.getSpellAbility().addEffect(ExileSpellEffect.getInstance());
|
||||
}
|
||||
|
||||
private HarnessInfinity(final HarnessInfinity card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HarnessInfinity copy() {
|
||||
return new HarnessInfinity(this);
|
||||
}
|
||||
}
|
||||
|
||||
class HarnessInfinityEffect extends OneShotEffect {
|
||||
|
||||
HarnessInfinityEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "Exchange your hand and graveyard.<br>";
|
||||
}
|
||||
|
||||
private HarnessInfinityEffect(final HarnessInfinityEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HarnessInfinityEffect copy() {
|
||||
return new HarnessInfinityEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player == null) {
|
||||
return false;
|
||||
}
|
||||
Cards hand = new CardsImpl(player.getHand());
|
||||
Cards graveyard = new CardsImpl(player.getGraveyard());
|
||||
player.moveCards(hand, Zone.GRAVEYARD, source, game);
|
||||
player.moveCards(graveyard, Zone.HAND, source, game);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -113,6 +113,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Guiding Voice", 19, Rarity.COMMON, mage.cards.g.GuidingVoice.class));
|
||||
cards.add(new SetCardInfo("Hall Monitor", 105, Rarity.UNCOMMON, mage.cards.h.HallMonitor.class));
|
||||
cards.add(new SetCardInfo("Hall of Oracles", 267, Rarity.RARE, mage.cards.h.HallOfOracles.class));
|
||||
cards.add(new SetCardInfo("Harness Infinity", 191, Rarity.MYTHIC, mage.cards.h.HarnessInfinity.class));
|
||||
cards.add(new SetCardInfo("Heated Debate", 106, Rarity.COMMON, mage.cards.h.HeatedDebate.class));
|
||||
cards.add(new SetCardInfo("Honor Troll", 134, Rarity.UNCOMMON, mage.cards.h.HonorTroll.class));
|
||||
cards.add(new SetCardInfo("Humiliate", 193, Rarity.UNCOMMON, mage.cards.h.Humiliate.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue