Package mage.target

Examples of mage.target.TargetPlayer


  public SignInBlood(UUID ownerId) {
    super(ownerId, 112, "Sign in Blood", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{B}{B}");
    this.expansionSetCode = "M10";
    this.color.setBlack(true);
    this.getSpellAbility().addTarget(new TargetPlayer());
    this.getSpellAbility().addEffect(new DrawCardTargetEffect(2));
    this.getSpellAbility().addEffect(new LoseLifeTargetEffect(2));
  }
View Full Code Here


  public Traumatize(UUID ownerId) {
    super(ownerId, 119, "Traumatize", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{3}{U}{U}");
    this.expansionSetCode = "10E";
    this.color.setBlue(true);
    this.getSpellAbility().addTarget(new TargetPlayer());
    this.getSpellAbility().addEffect(new TraumatizeEffect());
  }
View Full Code Here

  }

  @Override
  public boolean checkTrigger(GameEvent event, Game game) {
    if (event.getType() == EventType.DRAW_STEP_PRE) {
      this.addTarget(new TargetPlayer());
      this.targets.get(0).add(event.getPlayerId(),game);
      return true;
    }
    return false;
  }
View Full Code Here

  public HauntingEchoes(UUID ownerId) {
    super(ownerId, 98, "Haunting Echoes", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{3}{B}{B}");
    this.expansionSetCode = "M10";
    this.color.setBlack(true);
    this.getSpellAbility().addTarget(new TargetPlayer());
    this.getSpellAbility().addEffect(new HauntingEchoesEffect());
  }
View Full Code Here

    @Override
    public void adjustTargets(Ability ability, Game game) {
        if (ability instanceof SpellAbility) {
            ability.getTargets().clear();
            if (KickedCondition.getInstance().apply(game, ability)) {
                ability.addTarget(new TargetPlayer());
            }
        }
    }
View Full Code Here

        super(ownerId, 102, "Mind Sludge", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{4}{B}");
        this.expansionSetCode = "ZEN";

        this.color.setBlack(true);

        this.getSpellAbility().addTarget(new TargetPlayer());
        this.getSpellAbility().addEffect(new DiscardTargetEffect(new PermanentsOnBattlefieldCount(filter)));
    }
View Full Code Here

        this.expansionSetCode = "TMP";
        this.color.setGreen(true);

        // Target player gains 8 life.
        this.getSpellAbility().addEffect(new GainLifeTargetEffect(8));
        this.getSpellAbility().addTarget(new TargetPlayer());
    }
View Full Code Here

        this.addWatcher(new PlayerGainedLifeWatcher());

        // Target player loses 5 life and you gain 5 life.
        this.getSpellAbility().addEffect(new LoseLifeTargetEffect(5));
        this.getSpellAbility().addEffect(new GainLifeEffect(5));
        this.getSpellAbility().addTarget(new TargetPlayer());
    }
View Full Code Here

        this.power = new MageInt(1);
        this.toughness = new MageInt(2);

        this.addAbility(FlyingAbility.getInstance());
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToTargetEffect(Duration.EndOfTurn, 1), new TapSourceCost());
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        this.getSpellAbility().addAlternativeCost(new RuneflareTrapAlternativeCost());
        this.addWatcher(new CardsDrawnOpponentWatcher());

        // Runeflare Trap deals damage to target player equal to the number of cards in that player's hand.
        this.getSpellAbility().addEffect(new DamageTargetEffect(new TargetPlayerCardsInHandCount()));
        this.getSpellAbility().addTarget(new TargetPlayer());

    }
View Full Code Here

TOP

Related Classes of mage.target.TargetPlayer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.