mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Implemented Chandra, Gremlin Wrangler
This commit is contained in:
parent
70dece0343
commit
b98952b318
3 changed files with 85 additions and 1 deletions
60
Mage.Sets/src/mage/cards/c/ChandraGremlinWrangler.java
Normal file
60
Mage.Sets/src/mage/cards/c/ChandraGremlinWrangler.java
Normal file
|
@ -0,0 +1,60 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.LoyaltyAbility;
|
||||
import mage.abilities.common.PlaneswalkerEntersWithLoyaltyCountersAbility;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.game.permanent.token.GremlinToken;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ChandraGremlinWrangler extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledPermanent();
|
||||
|
||||
static {
|
||||
filter.add(new SubtypePredicate(SubType.GREMLIN));
|
||||
}
|
||||
|
||||
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter);
|
||||
|
||||
public ChandraGremlinWrangler(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.PLANESWALKER}, "{2}{R}{R}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.CHANDRA);
|
||||
this.addAbility(new PlaneswalkerEntersWithLoyaltyCountersAbility(3));
|
||||
|
||||
// +1: Create a 2/2 red Gremlin creature token.
|
||||
this.addAbility(new LoyaltyAbility(new CreateTokenEffect(new GremlinToken()), 1));
|
||||
|
||||
// -2: Chandra, Gremlin Wrangler deals X damage to any target, where X is the number of Gremlins you control.
|
||||
Ability ability = new LoyaltyAbility(new DamageTargetEffect(xValue).setText("{this} deals X damage to any target, where X is the number of Gremlins you control."), -2);
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private ChandraGremlinWrangler(final ChandraGremlinWrangler card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChandraGremlinWrangler copy() {
|
||||
return new ChandraGremlinWrangler(this);
|
||||
}
|
||||
}
|
24
Mage.Sets/src/mage/sets/HeroesOfTheRealm.java
Normal file
24
Mage.Sets/src/mage/sets/HeroesOfTheRealm.java
Normal file
|
@ -0,0 +1,24 @@
|
|||
package mage.sets;
|
||||
|
||||
import mage.cards.ExpansionSet;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.SetType;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class HeroesOfTheRealm extends ExpansionSet {
|
||||
|
||||
private static final HeroesOfTheRealm instance = new HeroesOfTheRealm();
|
||||
|
||||
public static HeroesOfTheRealm getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private HeroesOfTheRealm() {
|
||||
super("Heroes of the Realm", "HTR", ExpansionSet.buildDate(2017, 9, 20), SetType.JOKESET);
|
||||
this.hasBasicLands = false;
|
||||
|
||||
cards.add(new SetCardInfo("Chandra, Gremlin Wrangler", 1, Rarity.MYTHIC, mage.cards.c.ChandraGremlinWrangler.class));
|
||||
}
|
||||
}
|
|
@ -32666,7 +32666,7 @@ Mountain|Duel Decks: Mind vs. Might|62|L||Basic Land - Mountain|||{T}: Add {R}.|
|
|||
Forest|Duel Decks: Mind vs. Might|63|L||Basic Land - Forest|||{T}: Add {G}.|
|
||||
Forest|Duel Decks: Mind vs. Might|64|L||Basic Land - Forest|||{T}: Add {G}.|
|
||||
Forest|Duel Decks: Mind vs. Might|65|L||Basic Land - Forest|||{T}: Add {G}.|
|
||||
Chandra, Gremlin Wrangler|Heroes of the Realm|1|M|{2}{R}{R}|Legendary Planeswalker - Chandra|3||+1: Create a 2/2 red Gremlin creature token.$-2:Chandra, Gremlin Wrangler deals X damage to any target, where X is the number of Gremlins you control.|
|
||||
Chandra, Gremlin Wrangler|Heroes of the Realm|1|M|{2}{R}{R}|Legendary Planeswalker - Chandra|3|+1: Create a 2/2 red Gremlin creature token.$-2:Chandra, Gremlin Wrangler deals X damage to any target, where X is the number of Gremlins you control.|
|
||||
Dungeon Master|Heroes of the Realm|1|M|{2}{W}{U}|Legendary Planeswalker - Dungeon Master|||+1: Target opponent creates a 1/1 black Skeleton creature token with “When this creature dies, each opponent loses 2 life.”$+1: Roll a d20. If you roll a 1, skip your next turn. If you roll a 12 or higher, draw a card.$-6: You get an adventuring party. (Your party is a 3/3 red Fighter with first strike, a 1/1 white Cleric with lifelink, a 2/2 black Rogue with hexproof, and a 1/1 blue Wizard with flying.)|
|
||||
Nira, Hellkite Duelist|Heroes of the Realm|3|M|{W}{U}{B}{R}{G}|Legendary Creature — Dragon|6|6|Flash$Flying, trample, haste$When Nira, Hellkite Duelist enters the battlefield, the next time you would lose the game this turn, instead draw three cards and your life total becomes 5.|
|
||||
Baffling End|Rivals of Ixalan|1|U|{1}{W}|Enchantment|||When Baffling End enters the battlefield, exile target creature an opponent controls with converted mana cost 3 or less.$When Baffling End leaves the battlefield, target opponent create a 3/3 green Dinosaur creature token with trample.|
|
||||
|
|
Loading…
Reference in a new issue