mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[ZNR] Implemented Bloodchief's Thirst
This commit is contained in:
parent
2f94e4ce51
commit
2dc68a4182
2 changed files with 73 additions and 0 deletions
72
Mage.Sets/src/mage/cards/b/BloodchiefsThirst.java
Normal file
72
Mage.Sets/src/mage/cards/b/BloodchiefsThirst.java
Normal file
|
@ -0,0 +1,72 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.common.KickedCondition;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.keyword.KickerAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.ComparisonType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterCreatureOrPlaneswalkerPermanent;
|
||||
import mage.filter.predicate.mageobject.ConvertedManaCostPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.TargetPlayer;
|
||||
import mage.target.common.TargetCreatureOrPlaneswalker;
|
||||
import mage.target.targetadjustment.TargetAdjuster;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BloodchiefsThirst extends CardImpl {
|
||||
|
||||
public BloodchiefsThirst(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{B}");
|
||||
|
||||
// Kicker {2}{B}
|
||||
this.addAbility(new KickerAbility(new ManaCostsImpl<>("{2}{B}")));
|
||||
|
||||
// Destroy target creature or planeswalker with converted mana cost 2 or less. If this spell was kicked, instead destroy target creature or planeswalker.
|
||||
this.getSpellAbility().addEffect(new DestroyTargetEffect(
|
||||
"Destroy target creature or planeswalker with converted mana cost 2 or less. " +
|
||||
"If this spell was kicked, instead destroy target creature or planeswalker."
|
||||
));
|
||||
this.getSpellAbility().setTargetAdjuster(BloodchiefsThirstAdjuster.instance);
|
||||
}
|
||||
|
||||
private BloodchiefsThirst(final BloodchiefsThirst card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BloodchiefsThirst copy() {
|
||||
return new BloodchiefsThirst(this);
|
||||
}
|
||||
}
|
||||
|
||||
enum BloodchiefsThirstAdjuster implements TargetAdjuster {
|
||||
instance;
|
||||
|
||||
private static final FilterPermanent filter = new FilterCreatureOrPlaneswalkerPermanent(
|
||||
"creature or planeswalker with converted mana cost 2 or less"
|
||||
);
|
||||
|
||||
static {
|
||||
filter.add(new ConvertedManaCostPredicate(ComparisonType.FEWER_THAN, 3));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void adjustTargets(Ability ability, Game game) {
|
||||
ability.getTargets().clear();
|
||||
if (KickedCondition.instance.apply(game, ability)) {
|
||||
ability.addTarget(new TargetCreatureOrPlaneswalker());
|
||||
} else {
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -27,6 +27,7 @@ public final class ZendikarRising extends ExpansionSet {
|
|||
this.ratioBoosterMythic = 8;
|
||||
this.maxCardNumberInBooster = 280;
|
||||
|
||||
cards.add(new SetCardInfo("Bloodchief's Thirst", 94, Rarity.UNCOMMON, mage.cards.b.BloodchiefsThirst.class));
|
||||
cards.add(new SetCardInfo("Jace, Mirror Mage", 63, Rarity.MYTHIC, mage.cards.j.JaceMirrorMage.class));
|
||||
cards.add(new SetCardInfo("Lotus Cobra", 193, Rarity.RARE, mage.cards.l.LotusCobra.class));
|
||||
cards.add(new SetCardInfo("Murasa Rootgrazer", 229, Rarity.UNCOMMON, mage.cards.m.MurasaRootgrazer.class));
|
||||
|
|
Loading…
Reference in a new issue