Implemented Victory's Envoy

This commit is contained in:
Evan Kranzler 2019-12-17 20:18:14 -05:00
parent f591cff394
commit ee585d475e
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,53 @@
package mage.cards.v;
import mage.MageInt;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.effects.common.counter.AddCountersAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.TargetController;
import mage.counters.CounterType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.predicate.permanent.AnotherPredicate;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class VictorysEnvoy extends CardImpl {
private static final FilterPermanent filter
= new FilterControlledCreaturePermanent("other creature you control");
static {
filter.add(AnotherPredicate.instance);
}
public VictorysEnvoy(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}{W}");
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.CLERIC);
this.power = new MageInt(3);
this.toughness = new MageInt(3);
// At the beginning of your upkeep, put a +1/1 counter on each other creature you control.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(
new AddCountersAllEffect(CounterType.P1P1.createInstance(), filter),
TargetController.YOU, false
));
}
private VictorysEnvoy(final VictorysEnvoy card) {
super(card);
}
@Override
public VictorysEnvoy copy() {
return new VictorysEnvoy(this);
}
}

View file

@ -52,5 +52,6 @@ public final class TherosBeyondDeath extends ExpansionSet {
cards.add(new SetCardInfo("Staggering Insight", 228, Rarity.UNCOMMON, mage.cards.s.StaggeringInsight.class));
cards.add(new SetCardInfo("Swamp", 252, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS));
cards.add(new SetCardInfo("The Akroan War", 124, Rarity.RARE, mage.cards.t.TheAkroanWar.class));
cards.add(new SetCardInfo("Victory's Envoy", 289, Rarity.COMMON, mage.cards.v.VictorysEnvoy.class));
}
}