mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 12:19:59 -08:00
added TargetOpponentOrPlaneswalker and FilterOpponentOrPlaneswalker
This commit is contained in:
parent
6bc735c297
commit
4c2d2cf537
3 changed files with 311 additions and 2 deletions
|
|
@ -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 planeswalker’s 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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue