mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Implemented Thrash // Threat
This commit is contained in:
parent
a90c890c02
commit
ddcb383486
3 changed files with 64 additions and 5 deletions
57
Mage.Sets/src/mage/cards/t/ThrashThreat.java
Normal file
57
Mage.Sets/src/mage/cards/t/ThrashThreat.java
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
package mage.cards.t;
|
||||||
|
|
||||||
|
import mage.abilities.effects.common.CreateTokenEffect;
|
||||||
|
import mage.abilities.effects.common.DamageWithPowerTargetEffect;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.cards.SplitCard;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.SpellAbilityType;
|
||||||
|
import mage.constants.TargetController;
|
||||||
|
import mage.filter.FilterPermanent;
|
||||||
|
import mage.filter.common.FilterCreatureOrPlaneswalkerPermanent;
|
||||||
|
import mage.filter.predicate.permanent.ControllerPredicate;
|
||||||
|
import mage.game.permanent.token.RedGreenBeastToken;
|
||||||
|
import mage.target.TargetPermanent;
|
||||||
|
import mage.target.common.TargetControlledCreaturePermanent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class ThrashThreat extends SplitCard {
|
||||||
|
|
||||||
|
private static final FilterPermanent filter
|
||||||
|
= new FilterCreatureOrPlaneswalkerPermanent("creature or planeswalker you don't control");
|
||||||
|
|
||||||
|
static {
|
||||||
|
filter.add(new ControllerPredicate(TargetController.NOT_YOU));
|
||||||
|
}
|
||||||
|
|
||||||
|
public ThrashThreat(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, new CardType[]{CardType.SORCERY}, "{R/G}{R/G}", "{2}{R}{G}", SpellAbilityType.SPLIT);
|
||||||
|
|
||||||
|
// Thrash
|
||||||
|
// Target creature you control deals damage equal to its power to target creature or planeswalker you don't control.
|
||||||
|
this.getLeftHalfCard().getSpellAbility().addEffect(
|
||||||
|
new DamageWithPowerTargetEffect()
|
||||||
|
.setText("Target creature you control deals damage equal to its power " +
|
||||||
|
"to target creature or planeswalker you don't control.")
|
||||||
|
);
|
||||||
|
this.getLeftHalfCard().getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
|
||||||
|
this.getLeftHalfCard().getSpellAbility().addTarget(new TargetPermanent(filter));
|
||||||
|
|
||||||
|
// Threat
|
||||||
|
// Create a 4/4 red and green Beast creature token with trample.
|
||||||
|
this.getRightHalfCard().getSpellAbility().addEffect(new CreateTokenEffect(new RedGreenBeastToken()));
|
||||||
|
}
|
||||||
|
|
||||||
|
private ThrashThreat(final ThrashThreat card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ThrashThreat copy() {
|
||||||
|
return new ThrashThreat(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -4,6 +4,7 @@ import mage.cards.ExpansionSet;
|
||||||
import mage.cards.repository.CardCriteria;
|
import mage.cards.repository.CardCriteria;
|
||||||
import mage.cards.repository.CardInfo;
|
import mage.cards.repository.CardInfo;
|
||||||
import mage.cards.repository.CardRepository;
|
import mage.cards.repository.CardRepository;
|
||||||
|
import mage.cards.t.ThrashThreat;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.constants.SetType;
|
import mage.constants.SetType;
|
||||||
|
@ -141,6 +142,7 @@ public final class RavnicaAllegiance extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Teysa Karlov", 212, Rarity.RARE, mage.cards.t.TeysaKarlov.class));
|
cards.add(new SetCardInfo("Teysa Karlov", 212, Rarity.RARE, mage.cards.t.TeysaKarlov.class));
|
||||||
cards.add(new SetCardInfo("The Haunt of Hightower", 273, Rarity.MYTHIC, mage.cards.t.TheHauntOfHightower.class));
|
cards.add(new SetCardInfo("The Haunt of Hightower", 273, Rarity.MYTHIC, mage.cards.t.TheHauntOfHightower.class));
|
||||||
cards.add(new SetCardInfo("Theater of Horrors", 213, Rarity.RARE, mage.cards.t.TheaterOfHorrors.class));
|
cards.add(new SetCardInfo("Theater of Horrors", 213, Rarity.RARE, mage.cards.t.TheaterOfHorrors.class));
|
||||||
|
cards.add(new SetCardInfo("Thrash // Threat", 229, Rarity.RARE, ThrashThreat.class));
|
||||||
cards.add(new SetCardInfo("Titanic Brawl", 146, Rarity.COMMON, mage.cards.t.TitanicBrawl.class));
|
cards.add(new SetCardInfo("Titanic Brawl", 146, Rarity.COMMON, mage.cards.t.TitanicBrawl.class));
|
||||||
cards.add(new SetCardInfo("Tithe Taker", 27, Rarity.RARE, mage.cards.t.TitheTaker.class));
|
cards.add(new SetCardInfo("Tithe Taker", 27, Rarity.RARE, mage.cards.t.TitheTaker.class));
|
||||||
cards.add(new SetCardInfo("Trollbred Guardian", 148, Rarity.UNCOMMON, mage.cards.t.TrollbredGuardian.class));
|
cards.add(new SetCardInfo("Trollbred Guardian", 148, Rarity.UNCOMMON, mage.cards.t.TrollbredGuardian.class));
|
||||||
|
|
|
@ -9,9 +9,9 @@ import mage.constants.SubType;
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
public final class DomriChaosBringerToken extends TokenImpl {
|
public final class RedGreenBeastToken extends TokenImpl {
|
||||||
|
|
||||||
public DomriChaosBringerToken() {
|
public RedGreenBeastToken() {
|
||||||
super("Beast", "4/4 red and green Beast creature token with trample");
|
super("Beast", "4/4 red and green Beast creature token with trample");
|
||||||
cardType.add(CardType.CREATURE);
|
cardType.add(CardType.CREATURE);
|
||||||
color.setRed(true);
|
color.setRed(true);
|
||||||
|
@ -23,11 +23,11 @@ public final class DomriChaosBringerToken extends TokenImpl {
|
||||||
this.addAbility(TrampleAbility.getInstance());
|
this.addAbility(TrampleAbility.getInstance());
|
||||||
}
|
}
|
||||||
|
|
||||||
private DomriChaosBringerToken(final DomriChaosBringerToken token) {
|
private RedGreenBeastToken(final RedGreenBeastToken token) {
|
||||||
super(token);
|
super(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
public DomriChaosBringerToken copy() {
|
public RedGreenBeastToken copy() {
|
||||||
return new DomriChaosBringerToken(this);
|
return new RedGreenBeastToken(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue