added TargetOpponentOrPlaneswalker and FilterOpponentOrPlaneswalker

This commit is contained in:
Evan Kranzler 2018-04-19 16:59:38 -04:00
parent 6bc735c297
commit 4c2d2cf537
3 changed files with 311 additions and 2 deletions

View file

@ -52,6 +52,7 @@ import mage.game.permanent.Permanent;
import mage.players.Player;
import mage.target.common.TargetCardInYourGraveyard;
import mage.target.common.TargetOpponent;
import mage.target.common.TargetOpponentOrPlaneswalker;
/**
*
@ -69,9 +70,11 @@ public class AngrathMinotaurPirate extends CardImpl {
// +2: Angrath, Minotaur Pirate deals 1 damage to target opponent and each creature that player controls.
Effects effects1 = new Effects();
effects1.add(new DamageTargetEffect(1));
effects1.add(new DamageAllControlledTargetEffect(1, new FilterCreaturePermanent()).setText("and each creature that player controls"));
effects1.add(new DamageAllControlledTargetEffect(1, new FilterCreaturePermanent())
.setText("and each creature that player or that planeswalkers controller controls")
);
LoyaltyAbility ability1 = new LoyaltyAbility(effects1, +2);
ability1.addTarget(new TargetOpponent());
ability1.addTarget(new TargetOpponentOrPlaneswalker());
this.addAbility(ability1);
// -3: Return target Pirate card from your graveyard to the battlefield.