Added card "Vexis" and its abilities and effects

This commit is contained in:
Daniel Eberhard 2022-12-17 22:15:44 +01:00
parent 9abb4d3091
commit b9365cae45

View file

@ -1,4 +1,52 @@
package mage.cards.v; package mage.cards.v;
public class Vexis { import mage.MageInt;
import mage.abilities.common.OneOrMoreCountersAddedTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ColoredManaCost;
import mage.abilities.costs.mana.ManaCosts;
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
import mage.abilities.keyword.MonstrosityAbility;
import mage.abilities.keyword.TrampleAbility;
import mage.abilities.keyword.VigilanceAbility;
import mage.cards.Card;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.constants.Zone;
import mage.counters.CounterType;
import java.util.UUID;
/**
* @author Merlingilb
*/
public class Vexis extends CardImpl {
public Vexis(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}");
this.addSubType(SubType.WURM);
this.power = new MageInt(4);
this.toughness = new MageInt(4);
//Trample
this.addAbility(TrampleAbility.getInstance());
//{W}: Monstrosity 2
this.addAbility(new MonstrosityAbility("{W}", 2));
//Whenever a +1/+1 counter is put on Vexis, it gains vigilance until end of turn.
this.addAbility(new OneOrMoreCountersAddedTriggeredAbility(new GainAbilitySourceEffect(
VigilanceAbility.getInstance(), Duration.EndOfTurn), false, CounterType.P1P1));
}
public Vexis(final Vexis card) {
super(card);
}
@Override
public Vexis copy() {
return new Vexis(this);
}
} }