mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[STX] Implemented Sparring Regimen
This commit is contained in:
parent
4b1901348b
commit
9223bd4ed3
2 changed files with 46 additions and 0 deletions
45
Mage.Sets/src/mage/cards/s/SparringRegimen.java
Normal file
45
Mage.Sets/src/mage/cards/s/SparringRegimen.java
Normal file
|
@ -0,0 +1,45 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksWithCreaturesTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.LearnEffect;
|
||||
import mage.abilities.effects.common.UntapTargetEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.target.common.TargetAttackingCreature;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SparringRegimen extends CardImpl {
|
||||
|
||||
public SparringRegimen(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{W}");
|
||||
|
||||
// When Sparring Regimen enters the battlefield, learn.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new LearnEffect()));
|
||||
|
||||
// Whenever you attack, put a +1/+1 counter on target attacking creature and untap it.
|
||||
Ability ability = new AttacksWithCreaturesTriggeredAbility(
|
||||
new AddCountersTargetEffect(CounterType.P1P1.createInstance()), 0
|
||||
);
|
||||
ability.addEffect(new UntapTargetEffect().setText("and untap it"));
|
||||
ability.addTarget(new TargetAttackingCreature());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private SparringRegimen(final SparringRegimen card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SparringRegimen copy() {
|
||||
return new SparringRegimen(this);
|
||||
}
|
||||
}
|
|
@ -151,6 +151,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Silverquill Pledgemage", 233, Rarity.COMMON, mage.cards.s.SilverquillPledgemage.class));
|
||||
cards.add(new SetCardInfo("Solve the Equation", 54, Rarity.UNCOMMON, mage.cards.s.SolveTheEquation.class));
|
||||
cards.add(new SetCardInfo("Soothsayer Adept", 55, Rarity.COMMON, mage.cards.s.SoothsayerAdept.class));
|
||||
cards.add(new SetCardInfo("Sparring Regimen", 29, Rarity.RARE, mage.cards.s.SparringRegimen.class));
|
||||
cards.add(new SetCardInfo("Spectacle Mage", 235, Rarity.COMMON, mage.cards.s.SpectacleMage.class));
|
||||
cards.add(new SetCardInfo("Spirit Summoning", 236, Rarity.COMMON, mage.cards.s.SpiritSummoning.class));
|
||||
cards.add(new SetCardInfo("Square Up", 238, Rarity.COMMON, mage.cards.s.SquareUp.class));
|
||||
|
|
Loading…
Reference in a new issue