Package mage.target

Examples of mage.target.TargetPlayer


    this.subtype.add("Chandra ");
    this.color.setRed(true);
    this.loyalty = new MageInt(6);

    LoyaltyAbility ability1 = new LoyaltyAbility(new DamageTargetEffect(1), 1);
    ability1.addTarget(new TargetPlayer());
    this.addAbility(ability1);

    LoyaltyAbility ability2 = new LoyaltyAbility(new DamageXTargetEffect());
    ability2.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability2);

    Effects effects1 = new Effects();
    effects1.add(new DamageTargetEffect(10));
    effects1.add(new DamageAllControlledTargetEffect(10, FilterCreaturePermanent.getDefault()));
    LoyaltyAbility ability3 = new LoyaltyAbility(effects1, -8);
    ability3.addTarget(new TargetPlayer());
    this.addAbility(ability3);
  }
View Full Code Here


  public Blightning(UUID ownerId) {
    super(ownerId, 156, "Blightning", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{1}{B}{R}");
    this.expansionSetCode = "ALA";
    this.color.setBlack(true);
    this.color.setRed(true);
    this.getSpellAbility().addTarget(new TargetPlayer());
    this.getSpellAbility().addEffect(new DamageTargetEffect(3));
    this.getSpellAbility().addEffect(new DiscardTargetEffect(2));
  }
View Full Code Here

  public QuenchableFire(UUID ownerId) {
    super(ownerId, 70, "Quenchable Fire", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{3}{R}");
    this.expansionSetCode = "CON";
    this.color.setRed(true);
    this.getSpellAbility().addTarget(new TargetPlayer());
    this.getSpellAbility().addEffect(new DamageTargetEffect(3));
    this.getSpellAbility().addEffect(new QuenchableFireEffect());
  }
View Full Code Here

  public SearingBlaze(UUID ownerId) {
    super(ownerId, 90, "Searing Blaze", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{R}{R}");
    this.expansionSetCode = "WWK";
    this.color.setRed(true);
    this.getSpellAbility().addTarget(new TargetPlayer());
    //TODO: change this to only allow creatures controlled by first target
    this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    this.getSpellAbility().addEffect(new SearingBlazeEffect());
    this.watchers.add(new SearingBlazeWatcher(ownerId));
  }
View Full Code Here

    this.subtype.add("Jace");
    this.color.setBlue(true);
    this.loyalty = new MageInt(3);

    LoyaltyAbility ability1 = new LoyaltyAbility(new JaceTheMindSculptorEffect1(), 2);
    ability1.addTarget(new TargetPlayer());
    this.addAbility(ability1);

    LoyaltyAbility ability2 = new LoyaltyAbility(new JaceTheMindSculptorEffect2(), 0);
    this.addAbility(ability2);

    LoyaltyAbility ability3 = new LoyaltyAbility(new ReturnToHandTargetEffect(), -1);
    ability3.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability3);

    LoyaltyAbility ability4 = new LoyaltyAbility(new JaceTheMindSculptorEffect3(), -12);
    ability4.addTarget(new TargetPlayer());
    this.addAbility(ability4);

  }
View Full Code Here

    public MindRot(UUID ownerId){
        super(ownerId, 159, "Mind Rot", Rarity.COMMON, new CardType[]{CardType.SORCERY},"{2}{B}");
        this.expansionSetCode = "10E";
        this.color.setBlack(true);
        this.getSpellAbility().addTarget(new TargetPlayer());
        this.getSpellAbility().addEffect(new DiscardTargetEffect(2));
    }
View Full Code Here

  public HuntersFeast(UUID ownerId) {
    super(ownerId, 182, "Hunters' Feast", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{3}{G}");
    this.expansionSetCode = "M11";
    this.color.setGreen(true);
    this.getSpellAbility().addTarget(new TargetPlayer(0));
    this.getSpellAbility().addEffect(new GainLifeTargetEffect(6));
  }
View Full Code Here

    this.loyalty = new MageInt(3);

    this.addAbility(new LoyaltyAbility(new DrawCardAllEffect(1), 2));

    LoyaltyAbility ability1 = new LoyaltyAbility(new DrawCardTargetEffect(1), -1);
    ability1.addTarget(new TargetPlayer());
    this.addAbility(ability1);

    LoyaltyAbility ability2 = new LoyaltyAbility(new PutLibraryIntoGraveTargetEffect(20), -10);
    ability2.addTarget(new TargetPlayer());
    this.addAbility(ability2);

  }
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 LavaAxe(UUID ownerId) {
    super(ownerId, 215, "Lava Axe", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{4}{R}");
    this.expansionSetCode = "10E";
    this.color.setRed(true);
    this.getSpellAbility().addTarget(new TargetPlayer());
    this.getSpellAbility().addEffect(new DamageTargetEffect(5));
  }
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.