Package mage.abilities

Examples of mage.abilities.Mode


        this.getSpellAbility().getModes().setMaxModes(2);
        // Return target creature card from your graveyard to your hand;
        this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
        this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filterCreatureCard));
        // and/or return target land card from your graveyard to your hand.
        Mode mode1 = new Mode();
        mode1.getEffects().add(new ReturnToHandTargetEffect());
        mode1.getTargets().add(new TargetCardInYourGraveyard(filterLandCard));
        this.getSpellAbility().addMode(mode1);
    }
View Full Code Here


            StringBuilder newTargetDescription = new StringBuilder();
            // Fused split spells or spells where "Splice on Arcane" was used can have more than one ability
            for (SpellAbility spellAbility : spellAbilities) {
                // Some spells can have more than one mode
                for (UUID modeId : spellAbility.getModes().getSelectedModes()) {
                    Mode mode = spellAbility.getModes().get(modeId);
                    for (Target target : mode.getTargets()) {
                        Target newTarget = chooseNewTarget(player, spellAbility, mode, target, forceChange, game);
                        // clear the old target and copy all targets from new target
                        target.clearChosen();
                        for (UUID targetId : newTarget.getTargets()) {
                            target.addTarget(targetId, newTarget.getTargetAmount(targetId), spellAbility, game, false);                           
                        }

                    }
                    newTargetDescription.append(getSpellAbility().getTargetDescription(mode.getTargets(), game));
                }

            }
            game.informPlayers(this.getName() + " is now " + newTargetDescription.toString());
            return true;
View Full Code Here

        this.color.setWhite(true);

        this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
        this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filterCreature));

        Mode mode = new Mode();
        mode.getEffects().add(new ReturnToHandTargetEffect());
        mode.getTargets().add(new TargetCardInYourGraveyard(filterArtifact));
        this.getSpellAbility().addMode(mode);

        mode = new Mode();
        mode.getTargets().add(new TargetCardInYourGraveyard(filterCreature));
        mode.getTargets().add(new TargetCardInYourGraveyard(filterArtifact));
        mode.getEffects().add(new RememberTheFallenEffect());
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        super(ownerId, 144, "Fissure Vent", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{3}{R}{R}");
        this.expansionSetCode = "ROE";
        this.color.setRed(true);
        this.getSpellAbility().addTarget(new TargetArtifactPermanent());
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        Mode mode1 = new Mode();
        mode1.getTargets().add(new TargetNonBasicLandPermanent());
        mode1.getEffects().add(new DestroyTargetEffect());
        this.getSpellAbility().addMode(mode1);
        Mode mode2 = new Mode();
        mode2.getTargets().add(new TargetArtifactPermanent());
        mode2.getTargets().add(new TargetNonBasicLandPermanent());
        mode2.getEffects().add(new DestroyMultiTargetEffect());
        this.getSpellAbility().addMode(mode2);
    }
View Full Code Here

        this.color.setRed(true);

        // Choose one - Thunderbolt deals 3 damage to target player; or Thunderbolt deals 4 damage to target creature with flying.
        this.getSpellAbility().addEffect(new DamageTargetEffect(3));
        this.getSpellAbility().addTarget(new TargetPlayer());
        Mode mode = new Mode();
        mode.getEffects().add(new DamageTargetEffect(4));
        mode.getTargets().add(new TargetCreaturePermanent(filter));
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        this.color.setBlue(true);

        // Choose one - Tap X target permanents; or untap X target permanents.
        this.getSpellAbility().addEffect(new RealitySpasmTapEffect());
        Mode mode = new Mode();
        mode.getEffects().add(new RealitySpasmUntapEffect());
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        this.getSpellAbility().getModes().setMaxModes(1);
        // Tap two target creatures;
        this.getSpellAbility().addEffect(new TapTargetEffect());
        this.getSpellAbility().addTarget(new TargetCreaturePermanent(2,2));
        // or creatures don't untap during target player's next untap step.
        Mode mode = new Mode();
        mode.getEffects().add(new BlindingBeamEffect());
        mode.getTargets().add(new TargetPlayer());
        this.getSpellAbility().getModes().addMode(mode);

        // Entwine {1}
        this.addAbility(new EntwineAbility("{1}"));
    }
View Full Code Here

        //Choose one - Return target creature you control and all Auras you control attached to it to their owner's hand
        this.getSpellAbility().addEffect(new OrzhovCharmReturnToHandEffect());
        this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());

        // or destroy target creature and you lose life equal to its toughness;
        Mode mode = new Mode();
        mode.getEffects().add(new OrzhovCharmDestroyAndLoseLifeEffect());
        mode.getTargets().add(new TargetCreaturePermanent());
        this.getSpellAbility().addMode(mode);

        // or return target creature card with converted mana cost 1 or less from your graveyard to the battlefield.
        Mode mode2 = new Mode();
        mode2.getEffects().add(new ReturnFromGraveyardToBattlefieldTargetEffect());
        mode2.getTargets().add(new TargetCardInYourGraveyard(filter));
        this.getSpellAbility().addMode(mode2);


    }
View Full Code Here

        this.color.setWhite(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        Ability ability = new EntersBattlefieldTriggeredAbility(new GainLifeEffect(2));
        Mode mode = new Mode();
        mode.getEffects().add(new LoseLifeTargetEffect(2));
        mode.getTargets().add(new TargetPlayer());
        ability.addMode(mode);
        this.addAbility(ability);
    }
View Full Code Here

        this.getSpellAbility().getModes().setMaxModes(2);
        // Return target enchantment card from your graveyard to your hand;
        this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
        this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filterCard));
        // and/or destroy target enchantment.
        Mode mode = new Mode();
        mode.getEffects().add(new DestroyTargetEffect());
        mode.getTargets().add(new TargetPermanent(filter));
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

TOP

Related Classes of mage.abilities.Mode

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.