mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
Implemented Ajani's Influence
This commit is contained in:
parent
e829aecb2c
commit
3115c2bbb1
3 changed files with 60 additions and 4 deletions
54
Mage.Sets/src/mage/cards/a/AjanisInfluence.java
Normal file
54
Mage.Sets/src/mage/cards/a/AjanisInfluence.java
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.abilities.effects.common.LookLibraryAndPickControllerEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.mageobject.ColorPredicate;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class AjanisInfluence extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("a white card");
|
||||
|
||||
static {
|
||||
filter.add(new ColorPredicate(ObjectColor.WHITE));
|
||||
}
|
||||
|
||||
public AjanisInfluence(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{W}{W}");
|
||||
|
||||
// Put two +1/+1 counters on target creature.
|
||||
this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance(2)));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
|
||||
// Look at the top five cards of your library. You may reveal a white card form among them and put it into your hand. Put the rest on the bottom of your library in a random order.
|
||||
this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect(
|
||||
new StaticValue(5), false, new StaticValue(1), filter,
|
||||
Zone.LIBRARY, false, true, false, Zone.HAND, true, false, false
|
||||
).setBackInRandomOrder(true).setText("Look at the top five cards of your library. "
|
||||
+ "You may reveal a white card from among them and put it into your hand. "
|
||||
+ "Put the rest on the bottom of your library in a random order.")
|
||||
);
|
||||
}
|
||||
|
||||
public AjanisInfluence(final AjanisInfluence card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjanisInfluence copy() {
|
||||
return new AjanisInfluence(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -35,10 +35,11 @@ public final class LilianasSpoils extends CardImpl {
|
|||
// Look at the top five cards of your library. You may reveal a black card from among them and put it into your hand. Put the rest on the bottom of your library in a random order.
|
||||
this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect(
|
||||
new StaticValue(5), false, new StaticValue(1), filter,
|
||||
Zone.LIBRARY, false, true, false, Zone.HAND, true, false, false)
|
||||
.setBackInRandomOrder(true)
|
||||
.setText("Look at the top five cards of your library. You may reveal a black card from among them "
|
||||
+ "and put it into your hand. Put the rest on the bottom of your library in a random order."));
|
||||
Zone.LIBRARY, false, true, false, Zone.HAND, true, false, false
|
||||
).setBackInRandomOrder(true).setText("Look at the top five cards of your library. "
|
||||
+ "You may reveal a black card from among them and put it into your hand. "
|
||||
+ "Put the rest on the bottom of your library in a random order.")
|
||||
);
|
||||
}
|
||||
|
||||
public LilianasSpoils(final LilianasSpoils card) {
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ public final class CoreSet2019 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Aerial Engineer", 211, Rarity.UNCOMMON, mage.cards.a.AerialEngineer.class));
|
||||
cards.add(new SetCardInfo("Aggressive Mammoth", 302, Rarity.RARE, mage.cards.a.AggressiveMammoth.class));
|
||||
cards.add(new SetCardInfo("Air Elemental", 308, Rarity.UNCOMMON, mage.cards.a.AirElemental.class));
|
||||
cards.add(new SetCardInfo("Ajani's Influence", 282, Rarity.RARE, mage.cards.a.AjanisInfluence.class));
|
||||
cards.add(new SetCardInfo("Ajani's Last Stand", 4, Rarity.RARE, mage.cards.a.AjanisLastStand.class));
|
||||
cards.add(new SetCardInfo("Ajani's Pridemate", 5, Rarity.UNCOMMON, mage.cards.a.AjanisPridemate.class));
|
||||
cards.add(new SetCardInfo("Ajani's Welcome", 6, Rarity.UNCOMMON, mage.cards.a.AjanisWelcome.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue