mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[ZNR] Implemented Blood Beckoning
This commit is contained in:
parent
bb26e76906
commit
8d8185cc9d
2 changed files with 59 additions and 0 deletions
58
Mage.Sets/src/mage/cards/b/BloodBeckoning.java
Normal file
58
Mage.Sets/src/mage/cards/b/BloodBeckoning.java
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.common.KickedCondition;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
|
||||
import mage.abilities.keyword.KickerAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
import mage.target.targetadjustment.TargetAdjuster;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BloodBeckoning extends CardImpl {
|
||||
|
||||
public BloodBeckoning(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{B}");
|
||||
|
||||
// Kicker {3}
|
||||
this.addAbility(new KickerAbility(new ManaCostsImpl<>("{3}")));
|
||||
|
||||
// Return target creature card from your graveyard to your hand. If this spell was kicked, instead return two target creature cards from your graveyard to your hand.
|
||||
this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect()
|
||||
.setText("return target creature card from your graveyard to your hand. If this spell was kicked, " +
|
||||
"instead return two target creature cards from your graveyard to your hand"));
|
||||
this.getSpellAbility().setTargetAdjuster(BloodBeckoningAdjuster.instance);
|
||||
}
|
||||
|
||||
private BloodBeckoning(final BloodBeckoning card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BloodBeckoning copy() {
|
||||
return new BloodBeckoning(this);
|
||||
}
|
||||
}
|
||||
|
||||
enum BloodBeckoningAdjuster implements TargetAdjuster {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public void adjustTargets(Ability ability, Game game) {
|
||||
ability.getTargets().clear();
|
||||
if (KickedCondition.instance.apply(game, ability)) {
|
||||
ability.addTarget(new TargetCardInYourGraveyard(2, StaticFilters.FILTER_CARD_CREATURE));
|
||||
} else {
|
||||
ability.addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -94,6 +94,7 @@ public final class ZendikarRising extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Ashaya, Soul of the Wild", 179, Rarity.MYTHIC, mage.cards.a.AshayaSoulOfTheWild.class));
|
||||
cards.add(new SetCardInfo("Bala Ged Recovery", 180, Rarity.UNCOMMON, mage.cards.b.BalaGedRecovery.class));
|
||||
cards.add(new SetCardInfo("Bala Ged Sanctuary", 180, Rarity.UNCOMMON, mage.cards.b.BalaGedSanctuary.class));
|
||||
cards.add(new SetCardInfo("Blood Beckoning", 92, Rarity.COMMON, mage.cards.b.BloodBeckoning.class));
|
||||
cards.add(new SetCardInfo("Bloodchief's Thirst", 94, Rarity.UNCOMMON, mage.cards.b.BloodchiefsThirst.class));
|
||||
cards.add(new SetCardInfo("Boulderloft Pathway", 258, Rarity.RARE, mage.cards.b.BoulderloftPathway.class));
|
||||
cards.add(new SetCardInfo("Branchloft Pathway", 258, Rarity.RARE, mage.cards.b.BranchloftPathway.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue