mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[CMR] Implemented Akroma's Will
This commit is contained in:
parent
e006119e5d
commit
778729f20a
2 changed files with 77 additions and 0 deletions
76
Mage.Sets/src/mage/cards/a/AkromasWill.java
Normal file
76
Mage.Sets/src/mage/cards/a/AkromasWill.java
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
package mage.cards.a;
|
||||||
|
|
||||||
|
import mage.abilities.Mode;
|
||||||
|
import mage.abilities.condition.common.ControlACommanderCondition;
|
||||||
|
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||||
|
import mage.abilities.keyword.*;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Duration;
|
||||||
|
import mage.filter.FilterCard;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
import mage.filter.predicate.Predicates;
|
||||||
|
import mage.filter.predicate.mageobject.ColorlessPredicate;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class AkromasWill extends CardImpl {
|
||||||
|
|
||||||
|
private static final FilterCard filter = new FilterCard("all colors");
|
||||||
|
|
||||||
|
static {
|
||||||
|
filter.add(Predicates.not(ColorlessPredicate.instance));
|
||||||
|
}
|
||||||
|
|
||||||
|
public AkromasWill(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{W}");
|
||||||
|
|
||||||
|
// Choose one. If you control a commander as you cast this spell, you may choose both.
|
||||||
|
this.getSpellAbility().getModes().setChooseText(
|
||||||
|
"Choose one. If you control a commander as you cast this spell, you may choose both."
|
||||||
|
);
|
||||||
|
this.getSpellAbility().getModes().setMoreCondition(ControlACommanderCondition.instance);
|
||||||
|
|
||||||
|
// • Creatures you control gain flying, vigilance, and double strike until end of turn.
|
||||||
|
this.getSpellAbility().addEffect(new GainAbilityControlledEffect(
|
||||||
|
FlyingAbility.getInstance(), Duration.EndOfTurn,
|
||||||
|
StaticFilters.FILTER_CONTROLLED_CREATURE
|
||||||
|
).setText("creatures you control gain flying"));
|
||||||
|
this.getSpellAbility().addEffect(new GainAbilityControlledEffect(
|
||||||
|
VigilanceAbility.getInstance(), Duration.EndOfTurn,
|
||||||
|
StaticFilters.FILTER_CONTROLLED_CREATURE
|
||||||
|
).setText(", vigilance"));
|
||||||
|
this.getSpellAbility().addEffect(new GainAbilityControlledEffect(
|
||||||
|
DoubleStrikeAbility.getInstance(), Duration.EndOfTurn,
|
||||||
|
StaticFilters.FILTER_CONTROLLED_CREATURE
|
||||||
|
).setText(", and double strike until end of turn"));
|
||||||
|
|
||||||
|
// • Creatures you control gain lifelink, indestructible, and protection from all colors until end of turn.
|
||||||
|
Mode mode = new Mode(new GainAbilityControlledEffect(
|
||||||
|
LifelinkAbility.getInstance(), Duration.EndOfTurn,
|
||||||
|
StaticFilters.FILTER_CONTROLLED_CREATURE
|
||||||
|
).setText("creatures you control gain lifelink"));
|
||||||
|
mode.addEffect(new GainAbilityControlledEffect(
|
||||||
|
IndestructibleAbility.getInstance(), Duration.EndOfTurn,
|
||||||
|
StaticFilters.FILTER_CONTROLLED_CREATURE
|
||||||
|
).setText(", indestructible"));
|
||||||
|
mode.addEffect(new GainAbilityControlledEffect(
|
||||||
|
new ProtectionAbility(filter), Duration.EndOfTurn,
|
||||||
|
StaticFilters.FILTER_CONTROLLED_CREATURE
|
||||||
|
).setText(", and protection from all colors until end of turn"));
|
||||||
|
this.getSpellAbility().addMode(mode);
|
||||||
|
}
|
||||||
|
|
||||||
|
private AkromasWill(final AkromasWill card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AkromasWill copy() {
|
||||||
|
return new AkromasWill(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -30,6 +30,7 @@ public final class CommanderLegends extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Abrade", 410, Rarity.UNCOMMON, mage.cards.a.Abrade.class));
|
cards.add(new SetCardInfo("Abrade", 410, Rarity.UNCOMMON, mage.cards.a.Abrade.class));
|
||||||
cards.add(new SetCardInfo("Acidic Slime", 421, Rarity.UNCOMMON, mage.cards.a.AcidicSlime.class));
|
cards.add(new SetCardInfo("Acidic Slime", 421, Rarity.UNCOMMON, mage.cards.a.AcidicSlime.class));
|
||||||
cards.add(new SetCardInfo("Akiri, Line-Slinger", 515, Rarity.MYTHIC, mage.cards.a.AkiriLineSlinger.class));
|
cards.add(new SetCardInfo("Akiri, Line-Slinger", 515, Rarity.MYTHIC, mage.cards.a.AkiriLineSlinger.class));
|
||||||
|
cards.add(new SetCardInfo("Akroma's Will", 615, Rarity.RARE, mage.cards.a.AkromasWill.class));
|
||||||
cards.add(new SetCardInfo("Akroma, Vision of Ixidor", 547, Rarity.MYTHIC, mage.cards.a.AkromaVisionOfIxidor.class));
|
cards.add(new SetCardInfo("Akroma, Vision of Ixidor", 547, Rarity.MYTHIC, mage.cards.a.AkromaVisionOfIxidor.class));
|
||||||
cards.add(new SetCardInfo("Alena, Kessig Trapper", 160, Rarity.UNCOMMON, mage.cards.a.AlenaKessigTrapper.class));
|
cards.add(new SetCardInfo("Alena, Kessig Trapper", 160, Rarity.UNCOMMON, mage.cards.a.AlenaKessigTrapper.class));
|
||||||
cards.add(new SetCardInfo("Amareth, the Lustrous", 266, Rarity.RARE, mage.cards.a.AmarethTheLustrous.class));
|
cards.add(new SetCardInfo("Amareth, the Lustrous", 266, Rarity.RARE, mage.cards.a.AmarethTheLustrous.class));
|
||||||
|
|
Loading…
Reference in a new issue