mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 11:49:56 -08:00
Fixed multitarget handling of Decimate and Boom//Bust.
This commit is contained in:
parent
0dcd11cf4b
commit
b4d7009af8
3 changed files with 13 additions and 14 deletions
|
|
@ -48,9 +48,8 @@ public class Decimate extends CardImpl {
|
|||
super(ownerId, 287, "Decimate", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{2}{R}{G}");
|
||||
this.expansionSetCode = "ODY";
|
||||
|
||||
|
||||
// Destroy target artifact, target creature, target enchantment, and target land.
|
||||
Effect effect = new DestroyTargetEffect();
|
||||
Effect effect = new DestroyTargetEffect(false, true);
|
||||
effect.setText("Destroy target artifact, target creature, target enchantment, and target land.");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
this.getSpellAbility().addTarget(new TargetArtifactPermanent());
|
||||
|
|
|
|||
|
|
@ -25,32 +25,25 @@
|
|||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.sets.planarchaos;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Rarity;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DestroyAllEffect;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.cards.SplitCard;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.TargetController;
|
||||
import mage.filter.common.FilterLandPermanent;
|
||||
import mage.filter.predicate.permanent.ControllerPredicate;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
|
||||
|
||||
public class BoomBust extends SplitCard {
|
||||
|
||||
private static final FilterLandPermanent filter1 = new FilterLandPermanent("land you control");
|
||||
private static final FilterLandPermanent filter2 = new FilterLandPermanent("land you don't control");
|
||||
|
||||
static {
|
||||
filter1.add(new ControllerPredicate(TargetController.YOU));
|
||||
filter2.add(new ControllerPredicate(TargetController.NOT_YOU));
|
||||
|
|
@ -62,7 +55,7 @@ public class BoomBust extends SplitCard {
|
|||
|
||||
// Boom
|
||||
// Destroy target land you control and target land you don't control.
|
||||
Effect effect = new DestroyTargetEffect();
|
||||
Effect effect = new DestroyTargetEffect(false, true);
|
||||
effect.setText("Destroy target land you control and target land you don't control");
|
||||
getLeftHalfCard().getSpellAbility().addEffect(effect);
|
||||
getLeftHalfCard().getSpellAbility().addTarget(new TargetPermanent(filter1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue