[OTJ] Implement Giant Beaver

This commit is contained in:
theelk801 2024-04-01 21:53:16 -04:00
parent 6f6feb83f0
commit 47b7f627d9
3 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,61 @@
package mage.cards.g;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AttacksWhileSaddledTriggeredAbility;
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
import mage.abilities.keyword.SaddleAbility;
import mage.abilities.keyword.VigilanceAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.counters.CounterType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.permanent.SaddledSourceThisTurnPredicate;
import mage.target.TargetPermanent;
import mage.watchers.common.SaddledMountWatcher;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class GiantBeaver extends CardImpl {
private static final FilterPermanent filter = new FilterCreaturePermanent("creature that saddled it this turn");
static {
filter.add(SaddledSourceThisTurnPredicate.instance);
}
public GiantBeaver(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}");
this.subtype.add(SubType.BEAVER);
this.subtype.add(SubType.MOUNT);
this.power = new MageInt(4);
this.toughness = new MageInt(4);
// Vigilance
this.addAbility(VigilanceAbility.getInstance());
// Whenever Giant Beaver attacks while saddled, put a +1/+1 counter on target creature that saddled it this turn.
Ability ability = new AttacksWhileSaddledTriggeredAbility(new AddCountersTargetEffect(CounterType.P1P1.createInstance()));
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability, new SaddledMountWatcher());
// Saddle 3
this.addAbility(new SaddleAbility(3));
}
private GiantBeaver(final GiantBeaver card) {
super(card);
}
@Override
public GiantBeaver copy() {
return new GiantBeaver(this);
}
}

View file

@ -105,6 +105,7 @@ public final class OutlawsOfThunderJunction extends ExpansionSet {
cards.add(new SetCardInfo("Getaway Glamer", 14, Rarity.UNCOMMON, mage.cards.g.GetawayGlamer.class));
cards.add(new SetCardInfo("Geyser Drake", 51, Rarity.COMMON, mage.cards.g.GeyserDrake.class));
cards.add(new SetCardInfo("Ghired, Mirror of the Wilds", 205, Rarity.MYTHIC, mage.cards.g.GhiredMirrorOfTheWilds.class));
cards.add(new SetCardInfo("Giant Beaver", 165, Rarity.COMMON, mage.cards.g.GiantBeaver.class));
cards.add(new SetCardInfo("Gila Courser", 124, Rarity.UNCOMMON, mage.cards.g.GilaCourser.class));
cards.add(new SetCardInfo("Gisa, the Hellraiser", 89, Rarity.MYTHIC, mage.cards.g.GisaTheHellraiser.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Gisa, the Hellraiser", 288, Rarity.MYTHIC, mage.cards.g.GisaTheHellraiser.class, NON_FULL_USE_VARIOUS));

View file

@ -97,6 +97,7 @@ public enum SubType {
BAT("Bat", SubTypeSet.CreatureType),
BEAR("Bear", SubTypeSet.CreatureType),
BEAST("Beast", SubTypeSet.CreatureType),
BEAVER("Beaver", SubTypeSet.CreatureType),
BEEBLE("Beeble", SubTypeSet.CreatureType),
BEHOLDER("Beholder", SubTypeSet.CreatureType),
BERSERKER("Berserker", SubTypeSet.CreatureType),