Package mage.constants

Examples of mage.constants.Outcome


    public MaximumHandSizeControllerEffect copy() {
        return new MaximumHandSizeControllerEffect(this);
    }
   
    protected static Outcome defineOutcome(HandSizeModification handSizeModification, TargetController targetController) {
        Outcome newOutcome = Outcome.Benefit;
        if ((targetController.equals(TargetController.YOU) || targetController.equals(TargetController.ANY))
                && handSizeModification.equals(HandSizeModification.REDUCE)) {
            newOutcome = Outcome.Detriment;
        }
        return newOutcome;
View Full Code Here


        }
       
        if (targetId == null) {
            Target target = card.getSpellAbility().getTargets().get(0);
            Player player = game.getPlayer(card.getOwnerId());
            Outcome auraOutcome = Outcome.BoostCreature;
            Ability: for (Ability ability:card.getAbilities()) {
                if (ability instanceof SpellAbility) {
                    for (Effect effect: ability.getEffects()) {
                        if (effect instanceof AttachEffect) {
                            auraOutcome = effect.getOutcome();
View Full Code Here

                Card card = game.getCard(uuid);
                if (card != null) {
                    if (card.getCardType().contains(CardType.ENCHANTMENT)) {
                        Effect effect = card.getSpellAbility().getEffects().get(0);
                        if (effect != null) {
                            Outcome outcome = effect.getOutcome();
                            if (outcome.isGood()) {
                                enchantments++;
                            } else if (!outcome.equals(Outcome.Detriment)) {
                                enchantments--;
                            }
                        }
                    } else {
                        equipments++;
View Full Code Here

            if (super.apply(game, source)) {
                Permanent permanentToCopy = getBluePrintPermanent();
                if (permanentToCopy != null) {
                    if (permanentToCopy.getSubtype().contains("Aura")) {
                        Target target = getBluePrintPermanent().getSpellAbility().getTargets().get(0);
                        Outcome auraOutcome = Outcome.BoostCreature;
                        Ability: for (Ability ability: getBluePrintPermanent().getAbilities()) {
                            if (ability instanceof SpellAbility) {
                                for (Effect effect: ability.getEffects()) {
                                    if (effect instanceof AttachEffect) {
                                        auraOutcome = effect.getOutcome();
View Full Code Here

TOP

Related Classes of mage.constants.Outcome

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.