[DMC] Zeriam Golden Wind (#9389)

* skeleton for ZeriamGoldenWind

* implemented ZeriamGoldenWind

* DealsDamageToAPlayerAllTriggeredAbility change
This commit is contained in:
Edoardo Mortara 2022-08-20 15:59:42 +02:00 committed by GitHub
parent b501669365
commit 607f0270d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,54 @@
package mage.cards.z;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.DealsDamageToAPlayerAllTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.constants.SetTargetPointer;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.common.FilterControlledPermanent;
import mage.game.permanent.token.GoblinRogueToken;
import mage.game.permanent.token.GriffinToken;
/**
*
* @author freaisdead
*/
public final class ZeriamGoldenWind extends CardImpl {
private static final FilterControlledPermanent filter = new FilterControlledPermanent("a Griffin you control");
static {
filter.add(SubType.GRIFFIN.getPredicate());
}
public ZeriamGoldenWind(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.GRIFFIN);
this.power = new MageInt(3);
this.toughness = new MageInt(4);
// Flying
this.addAbility(FlyingAbility.getInstance());
// Whenever a Griffin you control deals combat damage to a player, create a 2/2 white Griffin creature token with flying.
this.addAbility(new DealsDamageToAPlayerAllTriggeredAbility(
new CreateTokenEffect(new GriffinToken()),
filter, false, SetTargetPointer.NONE, true));
}
private ZeriamGoldenWind(final ZeriamGoldenWind card) {
super(card);
}
@Override
public ZeriamGoldenWind copy() {
return new ZeriamGoldenWind(this);
}
}

View file

@ -31,5 +31,6 @@ public final class DominariaUnitedCommander extends ExpansionSet {
cards.add(new SetCardInfo("Path to Exile", 104, Rarity.UNCOMMON, mage.cards.p.PathToExile.class));
cards.add(new SetCardInfo("Surrak Dragonclaw", 169, Rarity.MYTHIC, mage.cards.s.SurrakDragonclaw.class));
cards.add(new SetCardInfo("Thrill of Possibility", 127, Rarity.COMMON, mage.cards.t.ThrillOfPossibility.class));
cards.add(new SetCardInfo("Zeriam, Golden Wind", 5, Rarity.RARE, mage.cards.z.ZeriamGoldenWind.class));
}
}