mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 13:19:18 -08:00
[ECL] Implement Prismabasher (#14230)
* Reference Elemental Spectacle and remove unused import * [ECL] Implement Prismabasher
This commit is contained in:
parent
e51275392d
commit
e729ae2090
3 changed files with 56 additions and 1 deletions
|
|
@ -6,7 +6,6 @@ import mage.abilities.dynamicvalue.common.ColorsAmongControlledPermanentsCount;
|
||||||
import mage.abilities.dynamicvalue.common.CreaturesYouControlCount;
|
import mage.abilities.dynamicvalue.common.CreaturesYouControlCount;
|
||||||
import mage.abilities.effects.common.CreateTokenEffect;
|
import mage.abilities.effects.common.CreateTokenEffect;
|
||||||
import mage.abilities.effects.common.GainLifeEffect;
|
import mage.abilities.effects.common.GainLifeEffect;
|
||||||
import mage.abilities.hint.common.DomainHint;
|
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.AbilityWord;
|
import mage.constants.AbilityWord;
|
||||||
|
|
|
||||||
55
Mage.Sets/src/mage/cards/p/Prismabasher.java
Normal file
55
Mage.Sets/src/mage/cards/p/Prismabasher.java
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
package mage.cards.p;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.target.common.TargetControlledCreaturePermanent;
|
||||||
|
import mage.target.targetadjustment.TargetsCountAdjuster;
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||||
|
import mage.abilities.dynamicvalue.common.ColorsAmongControlledPermanentsCount;
|
||||||
|
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||||
|
import mage.abilities.keyword.TrampleAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.AbilityWord;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author muz
|
||||||
|
*/
|
||||||
|
public final class Prismabasher extends CardImpl {
|
||||||
|
|
||||||
|
public Prismabasher(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}{G}");
|
||||||
|
|
||||||
|
this.subtype.add(SubType.ELEMENTAL);
|
||||||
|
this.power = new MageInt(6);
|
||||||
|
this.toughness = new MageInt(6);
|
||||||
|
|
||||||
|
// Trample
|
||||||
|
this.addAbility(TrampleAbility.getInstance());
|
||||||
|
|
||||||
|
// Vivid -- When this creature enters, up to X target creatures you control get +X/+X until end of turn, where X is the number of colors among permanents you control.
|
||||||
|
Ability ability = new EntersBattlefieldTriggeredAbility(
|
||||||
|
new BoostTargetEffect(
|
||||||
|
ColorsAmongControlledPermanentsCount.ALL_PERMANENTS,
|
||||||
|
ColorsAmongControlledPermanentsCount.ALL_PERMANENTS
|
||||||
|
).setText("up to X target creatures you control get +X/+X until end of turn, " +
|
||||||
|
"where X is the number of colors among permanents you control")
|
||||||
|
);
|
||||||
|
ability.addTarget(new TargetControlledCreaturePermanent(0, 0));
|
||||||
|
ability.setTargetAdjuster(new TargetsCountAdjuster(ColorsAmongControlledPermanentsCount.ALL_PERMANENTS));
|
||||||
|
this.addAbility(ability.setAbilityWord(AbilityWord.VIVID).addHint(ColorsAmongControlledPermanentsCount.ALL_PERMANENTS.getHint()));
|
||||||
|
}
|
||||||
|
|
||||||
|
private Prismabasher(final Prismabasher card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Prismabasher copy() {
|
||||||
|
return new Prismabasher(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -237,6 +237,7 @@ public final class LorwynEclipsed extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Plains", 274, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
|
cards.add(new SetCardInfo("Plains", 274, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
|
||||||
cards.add(new SetCardInfo("Plains", 279, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
|
cards.add(new SetCardInfo("Plains", 279, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
|
||||||
cards.add(new SetCardInfo("Prideful Feastling", 238, Rarity.COMMON, mage.cards.p.PridefulFeastling.class));
|
cards.add(new SetCardInfo("Prideful Feastling", 238, Rarity.COMMON, mage.cards.p.PridefulFeastling.class));
|
||||||
|
cards.add(new SetCardInfo("Prismabasher", 188, Rarity.UNCOMMON, mage.cards.p.Prismabasher.class));
|
||||||
cards.add(new SetCardInfo("Prismatic Undercurrents", 189, Rarity.UNCOMMON, mage.cards.p.PrismaticUndercurrents.class));
|
cards.add(new SetCardInfo("Prismatic Undercurrents", 189, Rarity.UNCOMMON, mage.cards.p.PrismaticUndercurrents.class));
|
||||||
cards.add(new SetCardInfo("Protective Response", 29, Rarity.UNCOMMON, mage.cards.p.ProtectiveResponse.class));
|
cards.add(new SetCardInfo("Protective Response", 29, Rarity.UNCOMMON, mage.cards.p.ProtectiveResponse.class));
|
||||||
cards.add(new SetCardInfo("Puca's Eye", 259, Rarity.UNCOMMON, mage.cards.p.PucasEye.class));
|
cards.add(new SetCardInfo("Puca's Eye", 259, Rarity.UNCOMMON, mage.cards.p.PucasEye.class));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue