* Added the text (to sacrifice) for selections done for sacrifice costs so the player can better distinguish what object to select currently.

This commit is contained in:
LevelX2 2015-09-25 23:15:55 +02:00
parent 85cec315db
commit 6119f71022
2 changed files with 4 additions and 2 deletions

View file

@ -34,6 +34,7 @@ import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.common.FilterCreaturePermanent;
import mage.target.common.TargetControlledCreaturePermanent;
import mage.target.common.TargetCreaturePermanent;
@ -50,8 +51,8 @@ public class BoneSplinters extends CardImpl {
// As an additional cost to cast Bone Splinters, sacrifice a creature.
this.getSpellAbility().addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(new FilterControlledCreaturePermanent("a creature"))));
// Destroy target creature.
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
this.getSpellAbility().addEffect(new DestroyTargetEffect());
this.getSpellAbility().addTarget(new TargetCreaturePermanent(new FilterCreaturePermanent("creature (to destoy)")));
this.getSpellAbility().addEffect(new DestroyTargetEffect("Destroy target creature"));
}
public BoneSplinters(final BoneSplinters card) {

View file

@ -51,6 +51,7 @@ public class SacrificeTargetCost extends CostImpl {
this.addTarget(target);
target.setNotTarget(true); // sacrifice is never targeted
this.text = "sacrifice " + target.getTargetName();
target.setTargetName(target.getTargetName() + " (to sacrifice)");
}
public SacrificeTargetCost(TargetControlledPermanent target, boolean noText) {