Examples of GainProtectionFromColorTargetEffect


Examples of mage.abilities.effects.common.GainProtectionFromColorTargetEffect

  public SejiriSteppe(UUID ownerId) {
    super(ownerId, 142, "Sejiri Steppe", Rarity.COMMON, new CardType[]{CardType.LAND}, null);
    this.expansionSetCode = "WWK";
    this.addAbility(new EntersBattlefieldTappedAbility());
    EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new GainProtectionFromColorTargetEffect(Duration.EndOfTurn), false);
    ability.addTarget(new TargetControlledCreaturePermanent());
    ability.addChoice(new ChoiceColor());
    this.addAbility(ability);
    this.addAbility(new WhiteManaAbility());
  }
View Full Code Here

Examples of mage.abilities.effects.common.continious.GainProtectionFromColorTargetEffect

        this.subtype.add("Arcane");

        this.color.setWhite(true);

        // Target creature you control gains protection from the color of your choice until end of turn.
        this.getSpellAbility().addEffect(new GainProtectionFromColorTargetEffect(Duration.EndOfTurn));
        this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());

        // Splice onto Arcane {W}
        this.addAbility(new SpliceOntoArcaneAbility("{W}"));
    }
View Full Code Here

Examples of mage.abilities.effects.common.continious.GainProtectionFromColorTargetEffect

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

        // When Midvast Protector enters the battlefield, target creature you control gains protection from the color of your choice until end of turn.
        EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new GainProtectionFromColorTargetEffect(Duration.EndOfTurn), false);
        ability.addTarget(new TargetControlledCreaturePermanent());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.continious.GainProtectionFromColorTargetEffect

        this.color.setWhite(true);

        // Put a +1/+1 counter on target creature you control. It gains protection from the color of your choice until end of turn.
        this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance()));
        this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
        Effect effect = new GainProtectionFromColorTargetEffect(Duration.EndOfTurn);
        effect.setText("It gains protection from the color of your choice until end of turn");
        this.getSpellAbility().addEffect(effect);
    }
View Full Code Here

Examples of mage.abilities.effects.common.continious.GainProtectionFromColorTargetEffect

    public SejiriSteppe(UUID ownerId) {
        super(ownerId, 142, "Sejiri Steppe", Rarity.COMMON, new CardType[]{CardType.LAND}, null);
        this.expansionSetCode = "WWK";
        this.addAbility(new EntersBattlefieldTappedAbility());
        EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new GainProtectionFromColorTargetEffect(Duration.EndOfTurn), false);
        ability.addTarget(new TargetControlledCreaturePermanent());
        this.addAbility(ability);
        this.addAbility(new WhiteManaAbility());
    }
View Full Code Here

Examples of mage.abilities.effects.common.continious.GainProtectionFromColorTargetEffect

        this.color.setWhite(true);

        // Target creature you control gains protection from the color of your choice until end of turn.
        this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
        this.getSpellAbility().addEffect(new GainProtectionFromColorTargetEffect(Duration.EndOfTurn));
        //
        // Draw a card.
        this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
    }
View Full Code Here

Examples of mage.abilities.effects.common.continious.GainProtectionFromColorTargetEffect

        this.expansionSetCode = "M12";

        this.color.setWhite(true);

        // Target creature gains protection from the color of your choice until end of turn.
        this.getSpellAbility().addEffect(new GainProtectionFromColorTargetEffect(Duration.EndOfTurn));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    }
View Full Code Here

Examples of mage.abilities.effects.common.continious.GainProtectionFromColorTargetEffect

        this.expansionSetCode = "THS";

        this.color.setWhite(true);

        // Target creature you control gains protection from the color of your choice until end of turn. Scry 1.
        this.getSpellAbility().addEffect(new GainProtectionFromColorTargetEffect(Duration.EndOfTurn));
        this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
        this.getSpellAbility().addEffect(new ScryEffect(1));
    }
View Full Code Here

Examples of mage.abilities.effects.common.continious.GainProtectionFromColorTargetEffect

                Ability ability = new ProtectionAbility(filter) ;
                game.addEffect(new GainAbilityControlledEffect(ability, Duration.EndOfTurn), source);
                game.addEffect(new GainAbilityControllerEffect(ability, Duration.EndOfTurn), source);
            }
            else {
                game.addEffect(new GainProtectionFromColorTargetEffect(Duration.EndOfTurn), source);
            }
            return true;

        }
        return false;
View Full Code Here

Examples of mage.abilities.effects.common.continious.GainProtectionFromColorTargetEffect

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

        // {tap}: Target creature you control gains protection from the color of your choice until end of turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainProtectionFromColorTargetEffect(Duration.EndOfTurn), new TapSourceCost());
        ability.addTarget(new TargetControlledCreaturePermanent());
        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.