[ACR] Implement Tranquilize

This commit is contained in:
theelk801 2024-06-20 09:44:44 -04:00
parent ebc0ec0c9f
commit e771856407
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,36 @@
package mage.cards.t;
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.target.common.TargetOpponentsCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class Tranquilize extends CardImpl {
public Tranquilize(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{U}");
// Tap target creature an opponent controls and put three stun counters on it.
this.getSpellAbility().addEffect(new TapTargetEffect());
this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.STUN.createInstance(3))
.setText("and put three stun counters on it"));
this.getSpellAbility().addTarget(new TargetOpponentsCreaturePermanent());
}
private Tranquilize(final Tranquilize card) {
super(card);
}
@Override
public Tranquilize copy() {
return new Tranquilize(this);
}
}

View file

@ -73,6 +73,7 @@ public final class AssassinsCreed extends ExpansionSet {
cards.add(new SetCardInfo("The Animus", 69, Rarity.RARE, mage.cards.t.TheAnimus.class));
cards.add(new SetCardInfo("The Spear of Leonidas", 38, Rarity.RARE, mage.cards.t.TheSpearOfLeonidas.class));
cards.add(new SetCardInfo("Towering Viewpoint", 77, Rarity.UNCOMMON, mage.cards.t.ToweringViewpoint.class));
cards.add(new SetCardInfo("Tranquilize", 284, Rarity.COMMON, mage.cards.t.Tranquilize.class));
cards.add(new SetCardInfo("Waterlogged Grove", 116, Rarity.RARE, mage.cards.w.WaterloggedGrove.class));
}
}