Package mage.abilities

Examples of mage.abilities.LoyaltyAbility


        this.subtype.add("Chandra");
        this.color.setRed(true);
        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(6)), false));


        LoyaltyAbility ability1 = new LoyaltyAbility(new DamageTargetEffect(1), 1);
        ability1.addTarget(new TargetPlayer());
        this.addAbility(ability1);

        LoyaltyAbility ability2 = new LoyaltyAbility(new DamageTargetEffect(ChandraNalaarXValue.getDefault()));
        ability2.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability2);

        Effects effects1 = new Effects();
        effects1.add(new DamageTargetEffect(10));
        effects1.add(new DamageAllControlledTargetEffect(10, new FilterCreaturePermanent()));
        LoyaltyAbility ability3 = new LoyaltyAbility(effects1, -8);
        ability3.addTarget(new TargetPlayer());
        this.addAbility(ability3);
    }
View Full Code Here


        this.color.setRed(true);

        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(2)), false));

        // +1: Draw a card, then discard a card at random.
        LoyaltyAbility ability = new LoyaltyAbility(new DrawCardSourceControllerEffect(1), 1);
        Effect effect = new DiscardControllerEffect(1, true);
        effect.setText(", then discard a card at random");
        ability.addEffect(effect);
        this.addAbility(ability);
        // -4: Tibalt, the Fiend-Blooded deals damage equal to the number of cards in target player's hand to that player.
        effect = new DamageTargetEffect(new CardsInTargetHandCount(), true);
        effect.setText("{this} deals damage equal to the number of cards in target player's hand to that player");
        ability = new LoyaltyAbility(effect, -4);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
        // -6: Gain control of all creatures until end of turn. Untap them. They gain haste until end of turn.
        this.addAbility(new LoyaltyAbility(new TibaltTheFiendBloodedThirdEffect(), -6));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.LoyaltyAbility

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.