mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
* Hull Breach - Fixed that the first target of the third mode was not destroyed.
This commit is contained in:
parent
6249e21ff3
commit
7224ab1614
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue