* Hull Breach - Fixed that the first target of the third mode was not destroyed.

This commit is contained in:
LevelX2 2015-09-21 16:32:57 +02:00
parent 6249e21ff3
commit 7224ab1614

View file

@ -38,7 +38,7 @@ import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.Target; import mage.target.Target;
import mage.target.TargetPermanent; import mage.target.TargetPermanent;
import mage.target.common.TargetArtifactPermanent; import mage.target.common.TargetArtifactPermanent;
import mage.target.targetpointer.SecondTargetPointer; import mage.target.common.TargetEnchantmentPermanent;
/** /**
* *
@ -62,12 +62,11 @@ public class HullBreach extends CardImpl {
this.getSpellAbility().addMode(mode); this.getSpellAbility().addMode(mode);
// or destroy target artifact and target enchantment. // or destroy target artifact and target enchantment.
mode = new Mode(); mode = new Mode();
Effect effect = new DestroyTargetEffect(); Effect effect = new DestroyTargetEffect(false, true);
effect.setTargetPointer(new SecondTargetPointer());
effect.setText("destroy target artifact and target enchantment"); effect.setText("destroy target artifact and target enchantment");
mode.getEffects().add(effect); mode.getEffects().add(effect);
mode.getTargets().add(new TargetArtifactPermanent()); mode.getTargets().add(new TargetArtifactPermanent());
mode.getTargets().add(new TargetPermanent(new FilterEnchantmentPermanent())); mode.getTargets().add(new TargetEnchantmentPermanent());
this.getSpellAbility().addMode(mode); this.getSpellAbility().addMode(mode);
} }