Package mage.abilities.keyword

Examples of mage.abilities.keyword.ProtectionAbility


        this.color.setGreen(true);
        this.subtype.add("Cat");
        this.subtype.add("Scout");
        this.power = new MageInt(2);
  this.toughness = new MageInt(2);
        this.addAbility(new ProtectionAbility(filter));
    }
View Full Code Here


        this.color.setRed(true);
        this.subtype.add("Goblin");
        this.subtype.add("Scout");
        this.power = new MageInt(2);
  this.toughness = new MageInt(2);
        this.addAbility(new ProtectionAbility(filter));
    }
View Full Code Here

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

        // Protection from black
        this.addAbility(new ProtectionAbility(filter));
        // Shadow
        this.addAbility(ShadowAbility.getInstance());
    }
View Full Code Here

    }
    private final FilterCard filter2;
    private final ObjectColor chosenColor;

    public GainProtectionFromChosenColorEffect(ObjectColor chosenColor) {
        super(new ProtectionAbility(new FilterCard()), Duration.EndOfTurn, filter1);
        filter2 = (FilterCard) ((ProtectionAbility) getFirstAbility()).getFilter();
        this.chosenColor = chosenColor;
    }
View Full Code Here

    @Override
    public boolean apply(Game game, Ability source) {
        filter2.add(new ColorPredicate(chosenColor));
        filter2.setMessage(chosenColor.getDescription());
        setAbility(new ProtectionAbility(new FilterCard(filter2)));
        return super.apply(game, source);
    }
View Full Code Here

public class GainProtectionFromColorTargetEffect extends GainAbilityTargetEffect {
   
    protected ChoiceColor choice;

    public GainProtectionFromColorTargetEffect(Duration duration) {
        super(new ProtectionAbility(new FilterCard()), duration);
        choice = new ChoiceColor();
    }
View Full Code Here

public class GainProtectionFromTypeTargetEffect extends GainAbilityTargetEffect {

    private String typeName;

    public GainProtectionFromTypeTargetEffect(Duration duration, FilterCard protectionFrom) {
        super(new ProtectionAbility(new FilterCard()), duration);
        ((ProtectionAbility)ability).setFilter(protectionFrom);
        typeName = protectionFrom.getMessage();
        staticText = "Target creature gains protection from " + typeName + " " + duration.toString();
    }
View Full Code Here

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

        this.addAbility(FlyingAbility.getInstance());
        this.addAbility(new ProtectionAbility(filter));
        this.addAbility(new EntersBattlefieldTriggeredAbility(new MalakirBloodwitchEffect(), false));
    }
View Full Code Here

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

        this.addAbility(new ProtectionAbility(filterProtection));
        EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new ExileTargetEffect());
        ability.addTarget(new TargetPermanent(filterTarget));
        this.addAbility(ability);
    }
View Full Code Here

    }

    private FilterCard filter2;

    public BraveTheElementsEffect() {
        super(new ProtectionAbility(new FilterCard()), Duration.EndOfTurn, filter1);
        filter2 = (FilterCard)((ProtectionAbility)getFirstAbility()).getFilter();
        staticText = "Choose a color. White creatures you control gain protection from the chosen color until end of turn";
    }
View Full Code Here

TOP

Related Classes of mage.abilities.keyword.ProtectionAbility

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.