mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
[SPE] Implement Venom, Deadly Devourer
This commit is contained in:
parent
c5275befb0
commit
93b08ef78d
3 changed files with 99 additions and 0 deletions
97
Mage.Sets/src/mage/cards/v/VenomDeadlyDevourer.java
Normal file
97
Mage.Sets/src/mage/cards/v/VenomDeadlyDevourer.java
Normal file
|
|
@ -0,0 +1,97 @@
|
||||||
|
package mage.cards.v;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
|
import mage.abilities.common.delayed.ReflexiveTriggeredAbility;
|
||||||
|
import mage.abilities.costs.mana.GenericManaCost;
|
||||||
|
import mage.abilities.effects.OneShotEffect;
|
||||||
|
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||||
|
import mage.abilities.keyword.MenaceAbility;
|
||||||
|
import mage.abilities.keyword.VigilanceAbility;
|
||||||
|
import mage.cards.Card;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.*;
|
||||||
|
import mage.counters.CounterType;
|
||||||
|
import mage.filter.FilterPermanent;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
import mage.game.Game;
|
||||||
|
import mage.players.Player;
|
||||||
|
import mage.target.TargetPermanent;
|
||||||
|
import mage.target.common.TargetCardInGraveyard;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class VenomDeadlyDevourer extends CardImpl {
|
||||||
|
|
||||||
|
public VenomDeadlyDevourer(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}{G}");
|
||||||
|
|
||||||
|
this.supertype.add(SuperType.LEGENDARY);
|
||||||
|
this.subtype.add(SubType.SYMBIOTE);
|
||||||
|
this.subtype.add(SubType.VILLAIN);
|
||||||
|
this.power = new MageInt(4);
|
||||||
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
|
// Vigilance
|
||||||
|
this.addAbility(VigilanceAbility.getInstance());
|
||||||
|
|
||||||
|
// Menace
|
||||||
|
this.addAbility(new MenaceAbility());
|
||||||
|
|
||||||
|
// {3}: Exile target creature card from a graveyard. When you do, put X +1/+1 counters on target Symbiote, where X is the exiled card's toughness.
|
||||||
|
Ability ability = new SimpleActivatedAbility(new VenomDeadlyDevourerEffect(), new GenericManaCost(3));
|
||||||
|
ability.addTarget(new TargetCardInGraveyard(StaticFilters.FILTER_CARD_CREATURE_A_GRAVEYARD));
|
||||||
|
this.addAbility(ability);
|
||||||
|
}
|
||||||
|
|
||||||
|
private VenomDeadlyDevourer(final VenomDeadlyDevourer card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public VenomDeadlyDevourer copy() {
|
||||||
|
return new VenomDeadlyDevourer(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class VenomDeadlyDevourerEffect extends OneShotEffect {
|
||||||
|
|
||||||
|
private static final FilterPermanent filter = new FilterPermanent(SubType.SYMBIOTE, "Symbiote");
|
||||||
|
|
||||||
|
VenomDeadlyDevourerEffect() {
|
||||||
|
super(Outcome.Benefit);
|
||||||
|
staticText = "exile target creature card from a graveyard. When you do, " +
|
||||||
|
"put X +1/+1 counters on target Symbiote, where X is the exiled card's toughness";
|
||||||
|
}
|
||||||
|
|
||||||
|
private VenomDeadlyDevourerEffect(final VenomDeadlyDevourerEffect effect) {
|
||||||
|
super(effect);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public VenomDeadlyDevourerEffect copy() {
|
||||||
|
return new VenomDeadlyDevourerEffect(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean apply(Game game, Ability source) {
|
||||||
|
Player player = game.getPlayer(source.getControllerId());
|
||||||
|
Card card = game.getCard(getTargetPointer().getFirst(game, source));
|
||||||
|
if (player == null || card == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
int toughness = card.getToughness().getValue();
|
||||||
|
player.moveCards(card, Zone.EXILED, source, game);
|
||||||
|
ReflexiveTriggeredAbility ability = new ReflexiveTriggeredAbility(
|
||||||
|
new AddCountersTargetEffect(CounterType.P1P1.createInstance(toughness)), false
|
||||||
|
);
|
||||||
|
ability.addTarget(new TargetPermanent(filter));
|
||||||
|
game.fireReflexiveTriggeredAbility(ability, source);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -21,5 +21,6 @@ public final class MarvelsSpiderManEternal extends ExpansionSet {
|
||||||
this.hasBasicLands = false; // temporary
|
this.hasBasicLands = false; // temporary
|
||||||
|
|
||||||
cards.add(new SetCardInfo("Grasping Tentacles", 21, Rarity.RARE, mage.cards.g.GraspingTentacles.class));
|
cards.add(new SetCardInfo("Grasping Tentacles", 21, Rarity.RARE, mage.cards.g.GraspingTentacles.class));
|
||||||
|
cards.add(new SetCardInfo("Venom, Deadly Devourer", 22, Rarity.RARE, mage.cards.v.VenomDeadlyDevourer.class));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -394,6 +394,7 @@ public enum SubType {
|
||||||
SULLUSTAN("Sullustan", SubTypeSet.CreatureType, true), // Star Wars
|
SULLUSTAN("Sullustan", SubTypeSet.CreatureType, true), // Star Wars
|
||||||
SURRAKAR("Surrakar", SubTypeSet.CreatureType),
|
SURRAKAR("Surrakar", SubTypeSet.CreatureType),
|
||||||
SURVIVOR("Survivor", SubTypeSet.CreatureType),
|
SURVIVOR("Survivor", SubTypeSet.CreatureType),
|
||||||
|
SYMBIOTE("Symbiote", SubTypeSet.CreatureType),
|
||||||
SYNTH("Synth", SubTypeSet.CreatureType),
|
SYNTH("Synth", SubTypeSet.CreatureType),
|
||||||
// T
|
// T
|
||||||
TENTACLE("Tentacle", SubTypeSet.CreatureType),
|
TENTACLE("Tentacle", SubTypeSet.CreatureType),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue