[J25] Implement Qala, Ajani's Pridemate

This commit is contained in:
theelk801 2024-11-12 10:35:35 -05:00
parent 93d412406d
commit e50baf0fa5
2 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,59 @@
package mage.cards.q;
import mage.MageInt;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.common.GainLifeControllerTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.dynamicvalue.common.CountersSourceCount;
import mage.abilities.dynamicvalue.common.StaticValue;
import mage.abilities.effects.common.GainLifeEffect;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.counters.CounterType;
import mage.filter.StaticFilters;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class QalaAjanisPridemate extends CardImpl {
public QalaAjanisPridemate(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.CAT);
this.subtype.add(SubType.WARRIOR);
this.power = new MageInt(3);
this.toughness = new MageInt(3);
// Whenever Qala, Ajani's Pridemate attacks, other attacking creatures you control get +X/+0 until end of turn, where X is the number of counters on Qala.
this.addAbility(new AttacksTriggeredAbility(new BoostControlledEffect(
CountersSourceCount.ANY, StaticValue.get(0), Duration.EndOfTurn,
StaticFilters.FILTER_ATTACKING_CREATURES, true
).setText("other attacking creatures you control get +X/+0 until end of turn, where X is the number of counters on {this}")));
// Whenever you gain life, put a +1/+1 counter on Qala.
this.addAbility(new GainLifeControllerTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance())));
// {3}{W}: You gain 1 life.
this.addAbility(new SimpleActivatedAbility(new GainLifeEffect(1), new ManaCostsImpl<>("{3}{W}")));
}
private QalaAjanisPridemate(final QalaAjanisPridemate card) {
super(card);
}
@Override
public QalaAjanisPridemate copy() {
return new QalaAjanisPridemate(this);
}
}

View file

@ -523,6 +523,7 @@ public final class FoundationsJumpstart extends ExpansionSet {
cards.add(new SetCardInfo("Prosperous Thief", 346, Rarity.UNCOMMON, mage.cards.p.ProsperousThief.class));
cards.add(new SetCardInfo("Purple-Crystal Crab", 347, Rarity.COMMON, mage.cards.p.PurpleCrystalCrab.class));
cards.add(new SetCardInfo("Pyrophobia", 587, Rarity.COMMON, mage.cards.p.Pyrophobia.class));
cards.add(new SetCardInfo("Qala, Ajani's Pridemate", 32, Rarity.UNCOMMON, mage.cards.q.QalaAjanisPridemate.class));
cards.add(new SetCardInfo("Quirion Beastcaller", 703, Rarity.RARE, mage.cards.q.QuirionBeastcaller.class));
cards.add(new SetCardInfo("Raise the Alarm", 101, Rarity.COMMON, mage.cards.r.RaiseTheAlarm.class));
cards.add(new SetCardInfo("Rally of Wings", 238, Rarity.UNCOMMON, mage.cards.r.RallyOfWings.class));