mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[BRO] Implemented Mishra, Tamer of Mak Fawa
This commit is contained in:
parent
d387889651
commit
d50c84abcc
2 changed files with 85 additions and 0 deletions
84
Mage.Sets/src/mage/cards/m/MishraTamerOfMakFawa.java
Normal file
84
Mage.Sets/src/mage/cards/m/MishraTamerOfMakFawa.java
Normal file
|
@ -0,0 +1,84 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.ContinuousEffectImpl;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.keyword.UnearthAbility;
|
||||
import mage.abilities.keyword.WardAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class MishraTamerOfMakFawa extends CardImpl {
|
||||
|
||||
public MishraTamerOfMakFawa(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}{R}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.ARTIFICER);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Permanents you control have "Ward--Sacrifice a permanent."
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect(
|
||||
new WardAbility(new SacrificeTargetCost(
|
||||
StaticFilters.FILTER_CONTROLLED_PERMANENT_SHORT_TEXT
|
||||
)), Duration.WhileOnBattlefield
|
||||
)));
|
||||
|
||||
// Each artifact card in your graveyard has unearth {1}{B}{R}
|
||||
this.addAbility(new SimpleStaticAbility(new MishraTamerOfMakFawaEffect()));
|
||||
}
|
||||
|
||||
private MishraTamerOfMakFawa(final MishraTamerOfMakFawa card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MishraTamerOfMakFawa copy() {
|
||||
return new MishraTamerOfMakFawa(this);
|
||||
}
|
||||
}
|
||||
|
||||
class MishraTamerOfMakFawaEffect extends ContinuousEffectImpl {
|
||||
|
||||
MishraTamerOfMakFawaEffect() {
|
||||
super(Duration.WhileOnBattlefield, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.Benefit);
|
||||
staticText = "each artifact card in your graveyard has unearth {1}{B}{R}";
|
||||
}
|
||||
|
||||
private MishraTamerOfMakFawaEffect(final MishraTamerOfMakFawaEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MishraTamerOfMakFawaEffect copy() {
|
||||
return new MishraTamerOfMakFawaEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player == null) {
|
||||
return false;
|
||||
}
|
||||
for (Card card : player.getGraveyard().getCards(StaticFilters.FILTER_CARD_ARTIFACT, game)) {
|
||||
game.getState().addOtherAbility(card, new UnearthAbility(new ManaCostsImpl<>("{1}{B}{R}")));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -50,6 +50,7 @@ public final class TheBrothersWar extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Mishra, Claimed by Gix", 216, Rarity.MYTHIC, mage.cards.m.MishraClaimedByGix.class));
|
||||
cards.add(new SetCardInfo("Mishra, Excavation Prodigy", 140, Rarity.UNCOMMON, mage.cards.m.MishraExcavationProdigy.class));
|
||||
cards.add(new SetCardInfo("Mishra, Lost to Phyrexia", "163b", Rarity.MYTHIC, mage.cards.m.MishraLostToPhyrexia.class));
|
||||
cards.add(new SetCardInfo("Mishra, Tamer of Mak Fawa", 217, Rarity.RARE, mage.cards.m.MishraTamerOfMakFawa.class));
|
||||
cards.add(new SetCardInfo("Monastery Swiftspear", 144, Rarity.UNCOMMON, mage.cards.m.MonasterySwiftspear.class));
|
||||
cards.add(new SetCardInfo("Mountain", 284, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("Overwhelming Remorse", 110, Rarity.COMMON, mage.cards.o.OverwhelmingRemorse.class));
|
||||
|
|
Loading…
Reference in a new issue