mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
[CMR] Implemented Horizon Stone
This commit is contained in:
parent
ac09094ed8
commit
c5c4f77f20
2 changed files with 74 additions and 0 deletions
73
Mage.Sets/src/mage/cards/h/HorizonStone.java
Normal file
73
Mage.Sets/src/mage/cards/h/HorizonStone.java
Normal file
|
@ -0,0 +1,73 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.ReplacementEffectImpl;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Outcome;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class HorizonStone extends CardImpl {
|
||||
|
||||
public HorizonStone(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{5}");
|
||||
|
||||
// If you would lose unspent mana, that mana becomes colorless instead.
|
||||
this.addAbility(new SimpleStaticAbility(new HorizonStoneEffect()));
|
||||
}
|
||||
|
||||
private HorizonStone(final HorizonStone card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HorizonStone copy() {
|
||||
return new HorizonStone(this);
|
||||
}
|
||||
}
|
||||
|
||||
class HorizonStoneEffect extends ReplacementEffectImpl {
|
||||
|
||||
HorizonStoneEffect() {
|
||||
super(Duration.WhileOnBattlefield, Outcome.Benefit);
|
||||
staticText = "If you would lose unspent mana, that mana becomes colorless instead.";
|
||||
}
|
||||
|
||||
private HorizonStoneEffect(final HorizonStoneEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HorizonStoneEffect copy() {
|
||||
return new HorizonStoneEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checksEventType(GameEvent event, Game game) {
|
||||
return event.getType() == GameEvent.EventType.EMPTY_MANA_POOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
return event.getPlayerId().equals(source.getControllerId());
|
||||
}
|
||||
}
|
|
@ -69,6 +69,7 @@ public final class CommanderLegends extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Gor Muldrak, Amphinologist", 277, Rarity.RARE, mage.cards.g.GorMuldrakAmphinologist.class));
|
||||
cards.add(new SetCardInfo("Halana, Kessig Ranger", 231, Rarity.UNCOMMON, mage.cards.h.HalanaKessigRanger.class));
|
||||
cards.add(new SetCardInfo("Horizon Scholar", 73, Rarity.UNCOMMON, mage.cards.h.HorizonScholar.class));
|
||||
cards.add(new SetCardInfo("Horizon Stone", 315, Rarity.RARE, mage.cards.h.HorizonStone.class));
|
||||
cards.add(new SetCardInfo("Hunter's Insight", 232, Rarity.UNCOMMON, mage.cards.h.HuntersInsight.class));
|
||||
cards.add(new SetCardInfo("Ikra Shidiqi, the Usurper", 519, Rarity.MYTHIC, mage.cards.i.IkraShidiqiTheUsurper.class));
|
||||
cards.add(new SetCardInfo("Immaculate Magistrate", 234, Rarity.RARE, mage.cards.i.ImmaculateMagistrate.class));
|
||||
|
|
Loading…
Reference in a new issue