Search in sources :

Example 6 with RiotAbility

use of mage.abilities.keyword.RiotAbility in project mage by magefree.

the class RiotTest method RiotRhythmOfTheWildHaste.

@Test
public void RiotRhythmOfTheWildHaste() {
    addCard(Zone.BATTLEFIELD, playerA, "Plains", 2);
    // Creature spells you control can't be countered.
    // Nontoken creatures you control have riot.
    addCard(Zone.BATTLEFIELD, playerA, "Rhythm of the Wild", 1);
    // Riot (This creature enters the battleifled with your choice of a +1/+1 counter or haste.)
    // Creature {1}{W}  2/2
    addCard(Zone.HAND, playerA, "Silvercoat Lion", 1);
    castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Silvercoat Lion");
    // no - haste
    setChoice(playerA, false);
    setStopAt(2, PhaseStep.BEGIN_COMBAT);
    setStrictChooseMode(true);
    execute();
    assertAllCommandsUsed();
    assertPermanentCount(playerA, "Silvercoat Lion", 1);
    assertPowerToughness(playerA, "Silvercoat Lion", 2, 2);
    assertAbility(playerA, "Silvercoat Lion", HasteAbility.getInstance(), true);
    assertAbility(playerA, "Silvercoat Lion", new RiotAbility(), true);
}
Also used : RiotAbility(mage.abilities.keyword.RiotAbility) Test(org.junit.Test)

Aggregations

RiotAbility (mage.abilities.keyword.RiotAbility)6 Test (org.junit.Test)5 MageObject (mage.MageObject)1 GainAbilityControlledSpellsEffect (mage.abilities.effects.common.continuous.GainAbilityControlledSpellsEffect)1 FilterCard (mage.filter.FilterCard)1 CardIdPredicate (mage.filter.predicate.mageobject.CardIdPredicate)1 StackObject (mage.game.stack.StackObject)1