mirror of
https://github.com/correl/mage.git
synced 2024-12-27 20:06:31 +00:00
[BRO] Implemented Involuntary Cooldown
This commit is contained in:
parent
17211f30cd
commit
5ffbd536d1
2 changed files with 46 additions and 0 deletions
45
Mage.Sets/src/mage/cards/i/InvoluntaryCooldown.java
Normal file
45
Mage.Sets/src/mage/cards/i/InvoluntaryCooldown.java
Normal file
|
@ -0,0 +1,45 @@
|
|||
package mage.cards.i;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.effects.common.TapTargetEffect;
|
||||
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.filter.FilterPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author weirddan455
|
||||
*/
|
||||
public final class InvoluntaryCooldown extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterPermanent("artifacts and/or creatures");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(CardType.ARTIFACT.getPredicate(), CardType.CREATURE.getPredicate()));
|
||||
}
|
||||
|
||||
public InvoluntaryCooldown(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{U}");
|
||||
|
||||
// Tap up to two target artifacts and/or creatures. Put two stun counters on each of them.
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(0, 2, filter));
|
||||
this.getSpellAbility().addEffect(new TapTargetEffect());
|
||||
this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.STUN.createInstance(2))
|
||||
.setText("put two stun counters on each of them"));
|
||||
}
|
||||
|
||||
private InvoluntaryCooldown(final InvoluntaryCooldown card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public InvoluntaryCooldown copy() {
|
||||
return new InvoluntaryCooldown(this);
|
||||
}
|
||||
}
|
|
@ -106,6 +106,7 @@ public final class TheBrothersWar extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Hurkyl's Final Meditation", 52, Rarity.RARE, mage.cards.h.HurkylsFinalMeditation.class));
|
||||
cards.add(new SetCardInfo("Hurkyl, Master Wizard", 51, Rarity.RARE, mage.cards.h.HurkylMasterWizard.class));
|
||||
cards.add(new SetCardInfo("In the Trenches", 8, Rarity.MYTHIC, mage.cards.i.InTheTrenches.class));
|
||||
cards.add(new SetCardInfo("Involuntary Cooldown", 53, Rarity.UNCOMMON, mage.cards.i.InvoluntaryCooldown.class));
|
||||
cards.add(new SetCardInfo("Island", 270, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Junkyard Genius", 214, Rarity.UNCOMMON, mage.cards.j.JunkyardGenius.class));
|
||||
cards.add(new SetCardInfo("Kayla's Command", 9, Rarity.RARE, mage.cards.k.KaylasCommand.class));
|
||||
|
|
Loading…
Reference in a new issue