mirror of
https://github.com/correl/mage.git
synced 2024-12-30 19:10:36 +00:00
Implemented Uro, Titan of Nature's Wrath
This commit is contained in:
parent
f237c4f388
commit
5422fb5825
2 changed files with 91 additions and 0 deletions
90
Mage.Sets/src/mage/cards/u/UroTitanOfNaturesWrath.java
Normal file
90
Mage.Sets/src/mage/cards/u/UroTitanOfNaturesWrath.java
Normal file
|
@ -0,0 +1,90 @@
|
|||
package mage.cards.u;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldOrAttacksSourceTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.effects.common.PutCardFromHandOntoBattlefieldEffect;
|
||||
import mage.abilities.keyword.EscapeAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.stack.Spell;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class UroTitanOfNaturesWrath extends CardImpl {
|
||||
|
||||
public UroTitanOfNaturesWrath(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}{U}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.ELDER);
|
||||
this.subtype.add(SubType.GIANT);
|
||||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(6);
|
||||
|
||||
// When Uro enters the battlefield, sacrifice it unless it escaped.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new UroTitanOfNaturesWrathEffect()));
|
||||
|
||||
// Whenever Uro enters the battlefield or attacks, you gain 3 life and draw a card, then you may put a land card from your hand onto the battlefield.
|
||||
Ability ability = new EntersBattlefieldOrAttacksSourceTriggeredAbility(new GainLifeEffect(3));
|
||||
ability.addEffect(new DrawCardSourceControllerEffect(1).setText("and draw a card, then"));
|
||||
ability.addEffect(new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_LAND_A));
|
||||
this.addAbility(ability);
|
||||
|
||||
// Escape-{G}{G}{U}{U}, Exile five other cards from your graveyard.
|
||||
this.addAbility(new EscapeAbility(this, "{G}{G}{U}{U}", 1));
|
||||
}
|
||||
|
||||
private UroTitanOfNaturesWrath(final UroTitanOfNaturesWrath card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UroTitanOfNaturesWrath copy() {
|
||||
return new UroTitanOfNaturesWrath(this);
|
||||
}
|
||||
}
|
||||
|
||||
class UroTitanOfNaturesWrathEffect extends OneShotEffect {
|
||||
|
||||
UroTitanOfNaturesWrathEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "sacrifice it unless it escaped";
|
||||
}
|
||||
|
||||
private UroTitanOfNaturesWrathEffect(final UroTitanOfNaturesWrathEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UroTitanOfNaturesWrathEffect copy() {
|
||||
return new UroTitanOfNaturesWrathEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = source.getSourcePermanentIfItStillExists(game);
|
||||
if (permanent == null) {
|
||||
return false;
|
||||
}
|
||||
Spell spell = game.getSpellOrLKIStack(source.getSourceId());
|
||||
if (spell != null && spell.getSpellAbility() instanceof EscapeAbility) {
|
||||
return false;
|
||||
}
|
||||
return permanent.sacrifice(source.getSourceId(), game);
|
||||
}
|
||||
}
|
|
@ -281,6 +281,7 @@ public final class TherosBeyondDeath extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Underworld Rage-Hound", 163, Rarity.COMMON, mage.cards.u.UnderworldRageHound.class));
|
||||
cards.add(new SetCardInfo("Underworld Sentinel", 293, Rarity.RARE, mage.cards.u.UnderworldSentinel.class));
|
||||
cards.add(new SetCardInfo("Unknown Shores", 249, Rarity.COMMON, mage.cards.u.UnknownShores.class));
|
||||
cards.add(new SetCardInfo("Uro, Titan of Nature's Wrath", 229, Rarity.MYTHIC, mage.cards.u.UroTitanOfNaturesWrath.class));
|
||||
cards.add(new SetCardInfo("Venomous Hierophant", 122, Rarity.COMMON, mage.cards.v.VenomousHierophant.class));
|
||||
cards.add(new SetCardInfo("Vexing Gull", 79, Rarity.COMMON, mage.cards.v.VexingGull.class));
|
||||
cards.add(new SetCardInfo("Victory's Envoy", 289, Rarity.RARE, mage.cards.v.VictorysEnvoy.class));
|
||||
|
|
Loading…
Reference in a new issue