mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* 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:
parent
85cec315db
commit
6119f71022
2 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue