Search in sources :

Example 1 with ConjureCardEffect

use of mage.abilities.effects.common.ConjureCardEffect in project mage by magefree.

the class SuntailSquadronEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(source.getControllerId());
    if (player == null) {
        return false;
    }
    Effect effect = new ConjureCardEffect("Suntail Hawk");
    do {
        effect.apply(game, source);
    } while (player.getHand().size() < 7);
    return true;
}
Also used : ConjureCardEffect(mage.abilities.effects.common.ConjureCardEffect) Player(mage.players.Player) Effect(mage.abilities.effects.Effect) OneShotEffect(mage.abilities.effects.OneShotEffect) ConjureCardEffect(mage.abilities.effects.common.ConjureCardEffect)

Aggregations

Effect (mage.abilities.effects.Effect)1 OneShotEffect (mage.abilities.effects.OneShotEffect)1 ConjureCardEffect (mage.abilities.effects.common.ConjureCardEffect)1 Player (mage.players.Player)1