mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
[BLB] Implement Maha, Its Feathers Night
This commit is contained in:
parent
f948ced2fe
commit
c409bb9b07
2 changed files with 84 additions and 0 deletions
83
Mage.Sets/src/mage/cards/m/MahaItsFeathersNight.java
Normal file
83
Mage.Sets/src/mage/cards/m/MahaItsFeathersNight.java
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.common.DiscardCardCost;
|
||||
import mage.abilities.effects.ContinuousEffectImpl;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.abilities.keyword.WardAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class MahaItsFeathersNight extends CardImpl {
|
||||
|
||||
public MahaItsFeathersNight(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}{B}");
|
||||
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.ELEMENTAL);
|
||||
this.subtype.add(SubType.BIRD);
|
||||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(5);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// Trample
|
||||
this.addAbility(TrampleAbility.getInstance());
|
||||
|
||||
// Ward--Discard a card.
|
||||
this.addAbility(new WardAbility(new DiscardCardCost()));
|
||||
|
||||
// Creatures your opponents control have base toughness 1.
|
||||
this.addAbility(new SimpleStaticAbility(new MahaItsFeathersNightEffect()));
|
||||
}
|
||||
|
||||
private MahaItsFeathersNight(final MahaItsFeathersNight card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MahaItsFeathersNight copy() {
|
||||
return new MahaItsFeathersNight(this);
|
||||
}
|
||||
}
|
||||
|
||||
class MahaItsFeathersNightEffect extends ContinuousEffectImpl {
|
||||
|
||||
MahaItsFeathersNightEffect() {
|
||||
super(Duration.WhileOnBattlefield, Layer.PTChangingEffects_7, SubLayer.SetPT_7b, Outcome.Benefit);
|
||||
staticText = "creatures your opponents control have base toughness 1";
|
||||
}
|
||||
|
||||
private MahaItsFeathersNightEffect(final MahaItsFeathersNightEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MahaItsFeathersNightEffect copy() {
|
||||
return new MahaItsFeathersNightEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
for (Permanent permanent : game.getBattlefield().getActivePermanents(
|
||||
StaticFilters.FILTER_OPPONENTS_PERMANENT_CREATURE,
|
||||
source.getControllerId(), source, game
|
||||
)) {
|
||||
permanent.getToughness().setModifiedBaseValue(1);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -36,6 +36,7 @@ public final class Bloomburrow extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Lumra, Bellow of the Woods", 183, Rarity.MYTHIC, mage.cards.l.LumraBellowOfTheWoods.class));
|
||||
cards.add(new SetCardInfo("Lupinflower Village", 256, Rarity.UNCOMMON, mage.cards.l.LupinflowerVillage.class));
|
||||
cards.add(new SetCardInfo("Mabel, Heir to Cragflame", 224, Rarity.RARE, mage.cards.m.MabelHeirToCragflame.class));
|
||||
cards.add(new SetCardInfo("Maha, Its Feathers Night", 100, Rarity.MYTHIC, mage.cards.m.MahaItsFeathersNight.class));
|
||||
cards.add(new SetCardInfo("Might of the Meek", 144, Rarity.COMMON, mage.cards.m.MightOfTheMeek.class));
|
||||
cards.add(new SetCardInfo("Mind Drill Assailant", 225, Rarity.COMMON, mage.cards.m.MindDrillAssailant.class));
|
||||
cards.add(new SetCardInfo("Moonrise Cleric", 226, Rarity.COMMON, mage.cards.m.MoonriseCleric.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue