Examples of UnblockableSourceEffect


Examples of mage.abilities.effects.common.combat.UnblockableSourceEffect

    public UnblockableAbility() {
        this("");
    }

    public UnblockableAbility(String ruleText) {
        Effect effect = new UnblockableSourceEffect();
        if (ruleText != null && !ruleText.isEmpty()) {
            effect.setText(ruleText);
        }
        this.addEffect(effect);
    }
View Full Code Here

Examples of mage.abilities.effects.common.combat.UnblockableSourceEffect

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

        //Neurok Spy is unblockable as long as defending player controls an artifact.
        Effect effect = new ConditionalRestrictionEffect(
                new UnblockableSourceEffect(),
                new DefendingPlayerControlsCondition(new FilterArtifactPermanent()));
        effect.setText("{this} is unblockable as long as defending player controls an artifact");
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
    }
View Full Code Here

Examples of mage.abilities.effects.common.combat.UnblockableSourceEffect

        // Whenever Spincrusher blocks, put a +1/+1 counter on it.
        this.addAbility(new BlocksTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false));
        // Remove a +1/+1 counter from Spincrusher: Spincrusher is unblockable this turn.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new UnblockableSourceEffect(Duration.EndOfTurn),
                new RemoveCountersSourceCost(CounterType.P1P1.createInstance(1))));
    }
View Full Code Here

Examples of mage.abilities.effects.common.combat.UnblockableSourceEffect

        this.power = new MageInt(5);
        this.toughness = new MageInt(5);

        // Scrapdiver Serpent is unblockable as long as defending player controls an artifact
        Effect effect = new ConditionalRestrictionEffect(
                new UnblockableSourceEffect(),
                new DefendingPlayerControlsCondition(new FilterArtifactPermanent()));
        effect.setText("{this} is unblockable as long as defending player controls an artifact");
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
    }
View Full Code Here

Examples of mage.abilities.effects.common.combat.UnblockableSourceEffect

            Cost cost = new SacrificeTargetCost(new TargetControlledCreaturePermanent());
            if (cost.canPay(source, source.getSourceId(), defendingPlayerId, game) &&
                    defender.chooseUse(Outcome.LoseAbility, "Sacrifice a creature to prevent " + sourceObject.getLogName() + " from getting unblockable?", game)) {
                if (!cost.pay(source, game, source.getSourceId(), defendingPlayerId, false)) {
                    // cost was not payed - so source gets unblockable
                    ContinuousEffect effect = new UnblockableSourceEffect(Duration.EndOfTurn);
                    game.addEffect(effect, source);
                }
            }
            return true;
        }
View Full Code Here

Examples of mage.abilities.effects.common.combat.UnblockableSourceEffect

        this.color.setBlue(true);
        this.power = new MageInt(4);
        this.toughness = new MageInt(1);

        // Plasma Elemental is unblockable.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new UnblockableSourceEffect()));
    }
View Full Code Here

Examples of mage.abilities.effects.common.combat.UnblockableSourceEffect

        this.power = new MageInt(3);
        this.toughness = new MageInt(3);

        // Bubbling Beebles is unblockable as long as defending player controls an enchantment.
        Effect effect = new ConditionalRestrictionEffect(
                new UnblockableSourceEffect(),
                new DefendingPlayerControlsCondition(filter));
        effect.setText("{this} is unblockable as long as defending player controls an enchantment");
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
    }
View Full Code Here

Examples of mage.abilities.effects.common.combat.UnblockableSourceEffect

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

        //Bouncing Beebles is unblockable as long as defending player controls an artifact.
        Effect effect = new ConditionalRestrictionEffect(
                new UnblockableSourceEffect(),
                new DefendingPlayerControlsCondition(new FilterArtifactPermanent()));
        effect.setText("{this} is unblockable as long as defending player controls an artifact");
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
    }
View Full Code Here

Examples of mage.abilities.effects.common.combat.UnblockableSourceEffect

        this.toughness = new MageInt(4);

        // Whenever another artifact enters the battlefield under your control, Glassdust Hulk gets +1/+1 until end of turn and is unblockable this turn.
        Ability ability = new EntersBattlefieldControlledTriggeredAbility(new BoostSourceEffect(1, 1, Duration.EndOfTurn), filter,
                "Whenever another artifact enters the battlefield under your control, Glassdust Hulk gets +1/+1 until end of turn and is unblockable this turn.");
        ability.addEffect(new UnblockableSourceEffect(Duration.EndOfTurn));
        this.addAbility(ability);
       
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{W/U}")));
    }
View Full Code Here

Examples of mage.abilities.effects.common.combat.UnblockableSourceEffect

        // {U}{B}: Vectis Agents gets -2/-0 until end of turn and is unblockable this turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new BoostSourceEffect(-2, -0, Duration.EndOfTurn),
                new ManaCostsImpl("{U}{B}"));
        ability.addEffect(new UnblockableSourceEffect(Duration.EndOfTurn));
        this.addAbility(ability);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.