mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[ONE] Implement Tyvar's Stand
This commit is contained in:
parent
b8670aa959
commit
81c033138d
2 changed files with 44 additions and 0 deletions
43
Mage.Sets/src/mage/cards/t/TyvarsStand.java
Normal file
43
Mage.Sets/src/mage/cards/t/TyvarsStand.java
Normal file
|
@ -0,0 +1,43 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.dynamicvalue.common.ManacostVariableValue;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.keyword.HexproofAbility;
|
||||
import mage.abilities.keyword.IndestructibleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TyvarsStand extends CardImpl {
|
||||
|
||||
public TyvarsStand(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{X}{G}");
|
||||
|
||||
// Target creature you control gets +X/+X and gains hexproof and indestructible until end of turn.
|
||||
this.getSpellAbility().addEffect(new BoostTargetEffect(
|
||||
ManacostVariableValue.REGULAR, ManacostVariableValue.REGULAR, Duration.EndOfTurn
|
||||
));
|
||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(HexproofAbility.getInstance())
|
||||
.setText("and gains hexproof"));
|
||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(IndestructibleAbility.getInstance())
|
||||
.setText("and indestructible until end of turn"));
|
||||
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
|
||||
}
|
||||
|
||||
private TyvarsStand(final TyvarsStand card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TyvarsStand copy() {
|
||||
return new TyvarsStand(this);
|
||||
}
|
||||
}
|
|
@ -87,6 +87,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("The Seedcore", 259, Rarity.RARE, mage.cards.t.TheSeedcore.class));
|
||||
cards.add(new SetCardInfo("Thrun, Breaker of Silence", 186, Rarity.RARE, mage.cards.t.ThrunBreakerOfSilence.class));
|
||||
cards.add(new SetCardInfo("Tyrranax Rex", 189, Rarity.MYTHIC, mage.cards.t.TyrranaxRex.class));
|
||||
cards.add(new SetCardInfo("Tyvar's Stand", 190, Rarity.UNCOMMON, mage.cards.t.TyvarsStand.class));
|
||||
cards.add(new SetCardInfo("Tyvar, Jubilant Brawler", 218, Rarity.RARE, mage.cards.t.TyvarJubilantBrawler.class));
|
||||
cards.add(new SetCardInfo("Unctus, Grand Metatect", 75, Rarity.RARE, mage.cards.u.UnctusGrandMetatect.class));
|
||||
cards.add(new SetCardInfo("Unnatural Restoration", 191, Rarity.UNCOMMON, mage.cards.u.UnnaturalRestoration.class));
|
||||
|
|
Loading…
Reference in a new issue