Package mage.abilities

Examples of mage.abilities.Abilities


        assertLife(playerA, 20);
        assertLife(playerB, 20);

        assertPowerToughness(playerA, "Horned Turtle", 4, 5, Filter.ComparisonScope.All);

        Abilities abilities = new AbilitiesImpl();
        abilities.add(LifelinkAbility.getInstance());
        assertAbilities(playerA, "Horned Turtle", abilities);
    }
View Full Code Here


        assertLife(playerB, 20);

        assertPermanentCount(playerA, "Elite Vanguard", 0);
        assertPowerToughness(playerA, "Air Elemental", 7, 5, Filter.ComparisonScope.All);

        Abilities abilities = new AbilitiesImpl();
        abilities.add(LifelinkAbility.getInstance());
        assertAbilities(playerA, "Air Elemental", abilities);
    }
View Full Code Here

        execute();

        assertPowerToughness(playerA, "Nearheath Pilgrim", 2, 1);
        assertPowerToughness(playerA, "Elite Vanguard", 2, 1);

        Abilities abilities = new AbilitiesImpl();
        abilities.add(LifelinkAbility.getInstance());
        assertAbilities(playerA, "Nearheath Pilgrim", abilities);
        assertAbilities(playerA, "Elite Vanguard", abilities);
    }
View Full Code Here

                card.addCounters(CounterType.TIME.createInstance(4), game);
                if (!hasSuspend) {
                    // add suspend ability
                    // TODO: Find a better solution for giving suspend to a card.
                    // If the exiled card leaves exile by another way, the abilites won't be removed from the card
                    Abilities oldAbilities = card.getAbilities().copy();
                    SuspendAbility suspendAbility = new SuspendAbility(4, null, card);
                    card.addAbility(suspendAbility);

                    for (Ability ability :card.getAbilities()) {
                        if (!oldAbilities.contains(ability)) {
                            ability.setControllerId(source.getControllerId());
                            game.getState().addAbility(ability, card.getId(), card);
                        }
                    }
                   
View Full Code Here

                        for (Card card : player.getGraveyard().getCards(game)) {
                            if (card != null) {
                                card.getAbilities().clear();
                                game.getContinuousEffects().removeGainedEffectsForSource(card.getId());
                                game.getState().resetTriggersForSourceId(card.getId());
                                Abilities abilities = game.getState().getAllOtherAbilities(card.getId());
                                if (abilities != null) {
                                    abilities.clear();
                                }
                            }
                        }
                    }
                }
View Full Code Here

TOP

Related Classes of mage.abilities.Abilities

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.