mirror of
https://github.com/correl/mage.git
synced 2025-04-05 17:00:10 -09:00
[AFR] Implemented Krydle of Baldur's Gate
This commit is contained in:
parent
c7bdc95e78
commit
d9a941f772
2 changed files with 64 additions and 0 deletions
Mage.Sets/src/mage
63
Mage.Sets/src/mage/cards/k/KrydleOfBaldursGate.java
Normal file
63
Mage.Sets/src/mage/cards/k/KrydleOfBaldursGate.java
Normal file
|
@ -0,0 +1,63 @@
|
|||
package mage.cards.k;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksWithCreaturesTriggeredAbility;
|
||||
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.effects.common.LoseLifeTargetEffect;
|
||||
import mage.abilities.effects.common.MillCardsTargetEffect;
|
||||
import mage.abilities.effects.common.combat.CantBeBlockedTargetEffect;
|
||||
import mage.abilities.effects.keyword.ScryEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class KrydleOfBaldursGate extends CardImpl {
|
||||
|
||||
public KrydleOfBaldursGate(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{U}{B}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.ELF);
|
||||
this.subtype.add(SubType.ROGUE);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Whenever Krydle of Baldur's Gate deals combat damage to a player, that player loses 1 life and mills a card, then you gain 1 life and scry 1.
|
||||
Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(
|
||||
new LoseLifeTargetEffect(1), false, true
|
||||
);
|
||||
ability.addEffect(new MillCardsTargetEffect(1).setText("and mills a card"));
|
||||
ability.addEffect(new GainLifeEffect(1).concatBy(", then"));
|
||||
ability.addEffect(new ScryEffect(1, false).concatBy("and"));
|
||||
this.addAbility(ability);
|
||||
|
||||
// Whenever you attack, you may pay {2}. If you do, target creature can't be blocked this turn.
|
||||
ability = new AttacksWithCreaturesTriggeredAbility(new DoIfCostPaid(
|
||||
new CantBeBlockedTargetEffect(), new GenericManaCost(2)
|
||||
), 0);
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private KrydleOfBaldursGate(final KrydleOfBaldursGate card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public KrydleOfBaldursGate copy() {
|
||||
return new KrydleOfBaldursGate(this);
|
||||
}
|
||||
}
|
|
@ -108,6 +108,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Island", 266, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Iymrith, Desert Doom", 62, Rarity.MYTHIC, mage.cards.i.IymrithDesertDoom.class));
|
||||
cards.add(new SetCardInfo("Kick in the Door", 153, Rarity.COMMON, mage.cards.k.KickInTheDoor.class));
|
||||
cards.add(new SetCardInfo("Krydle of Baldur's Gate", 226, Rarity.UNCOMMON, mage.cards.k.KrydleOfBaldursGate.class));
|
||||
cards.add(new SetCardInfo("Lightfoot Rogue", 111, Rarity.UNCOMMON, mage.cards.l.LightfootRogue.class));
|
||||
cards.add(new SetCardInfo("Lolth, Spider Queen", 112, Rarity.MYTHIC, mage.cards.l.LolthSpiderQueen.class));
|
||||
cards.add(new SetCardInfo("Manticore", 113, Rarity.COMMON, mage.cards.m.Manticore.class));
|
||||
|
|
Loading…
Add table
Reference in a new issue