mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
[WOE] Implement Kellan's Lightblades (#10981)
This commit is contained in:
parent
5998f43f4d
commit
b21e8e2d96
2 changed files with 48 additions and 0 deletions
47
Mage.Sets/src/mage/cards/k/KellansLightblades.java
Normal file
47
Mage.Sets/src/mage/cards/k/KellansLightblades.java
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.k;
|
||||
|
||||
import mage.abilities.condition.common.BargainedCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.hint.common.BargainCostWasPaidHint;
|
||||
import mage.abilities.keyword.BargainAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetAttackingOrBlockingCreature;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class KellansLightblades extends CardImpl {
|
||||
|
||||
public KellansLightblades(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}");
|
||||
|
||||
// Bargain
|
||||
this.addAbility(new BargainAbility());
|
||||
|
||||
// Kellan's Lightblades deals 3 damage to target attacking or blocking creature. If this spell was bargained, destroy that creature instead.
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new DestroyTargetEffect(),
|
||||
new DamageTargetEffect(3),
|
||||
BargainedCondition.instance,
|
||||
"{this} deals 3 damage to target attacking or blocking creature. "
|
||||
+ "If this spell was bargained, destroy that creature instead."
|
||||
));
|
||||
this.getSpellAbility().addTarget(new TargetAttackingOrBlockingCreature());
|
||||
this.getSpellAbility().addHint(BargainCostWasPaidHint.instance);
|
||||
}
|
||||
|
||||
private KellansLightblades(final KellansLightblades card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public KellansLightblades copy() {
|
||||
return new KellansLightblades(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -102,6 +102,7 @@ public final class WildsOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Island", 263, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Johann's Stopgap", 58, Rarity.COMMON, mage.cards.j.JohannsStopgap.class));
|
||||
cards.add(new SetCardInfo("Johann, Apprentice Sorcerer", 207, Rarity.UNCOMMON, mage.cards.j.JohannApprenticeSorcerer.class));
|
||||
cards.add(new SetCardInfo("Kellan's Lightblades", 18, Rarity.COMMON, mage.cards.k.KellansLightblades.class));
|
||||
cards.add(new SetCardInfo("Kellan, the Fae-Blooded", 230, Rarity.MYTHIC, mage.cards.k.KellanTheFaeBlooded.class));
|
||||
cards.add(new SetCardInfo("Knight of Doves", 19, Rarity.UNCOMMON, mage.cards.k.KnightOfDoves.class));
|
||||
cards.add(new SetCardInfo("Korvold and the Noble Thief", 139, Rarity.UNCOMMON, mage.cards.k.KorvoldAndTheNobleThief.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue