Implemented Brallin, Skyshark Rider

This commit is contained in:
Evan Kranzler 2020-04-04 18:43:45 -04:00
parent 14a33f11aa
commit 44228bbea8
2 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,66 @@
package mage.cards.b;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.DamagePlayersEffect;
import mage.abilities.effects.common.DiscardCardControllerTriggeredAbility;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.abilities.keyword.PartnerWithAbility;
import mage.abilities.keyword.TrampleAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.*;
import mage.counters.CounterType;
import mage.filter.FilterPermanent;
import mage.target.TargetPermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class BrallinSkysharkRider extends CardImpl {
private static final FilterPermanent filter = new FilterPermanent(SubType.SHARK, "Shark");
public BrallinSkysharkRider(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.SHAMAN);
this.power = new MageInt(3);
this.toughness = new MageInt(3);
// Partner with Shabraz, the Skyshark
this.addAbility(new PartnerWithAbility("Shabraz, the Skyshark"));
// Whenever you discard a card, put a +1/+1 counter on Brallin, Skyshark Rider and it deals 1 damage to each opponent.
Ability ability = new DiscardCardControllerTriggeredAbility(
new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false
);
ability.addEffect(new DamagePlayersEffect(
1, TargetController.OPPONENT, "and it"
));
this.addAbility(ability);
// {R}: Target Shark gains trample until end of turn.
ability = new SimpleActivatedAbility(new GainAbilityTargetEffect(
TrampleAbility.getInstance(), Duration.EndOfTurn
), new ManaCostsImpl("{R}"));
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);
}
private BrallinSkysharkRider(final BrallinSkysharkRider card) {
super(card);
}
@Override
public BrallinSkysharkRider copy() {
return new BrallinSkysharkRider(this);
}
}

View file

@ -22,6 +22,7 @@ public final class Commander2020Edition extends ExpansionSet {
cards.add(new SetCardInfo("Ajani Unyielding", 201, Rarity.MYTHIC, mage.cards.a.AjaniUnyielding.class));
cards.add(new SetCardInfo("Alesha, Who Smiles at Death", 143, Rarity.RARE, mage.cards.a.AleshaWhoSmilesAtDeath.class));
cards.add(new SetCardInfo("Arcane Signet", 237, Rarity.COMMON, mage.cards.a.ArcaneSignet.class));
cards.add(new SetCardInfo("Brallin, Skyshark Rider", 4, Rarity.MYTHIC, mage.cards.b.BrallinSkysharkRider.class));
cards.add(new SetCardInfo("Crop Rotation", 169, Rarity.COMMON, mage.cards.c.CropRotation.class));
cards.add(new SetCardInfo("Curious Herd", 59, Rarity.RARE, mage.cards.c.CuriousHerd.class));
cards.add(new SetCardInfo("Lifecrafter's Bestiary", 244, Rarity.RARE, mage.cards.l.LifecraftersBestiary.class));