use of mage.abilities.costs.mana.ManaCosts in project mage by magefree.
the class CowedByWisdomayCostToAttackBlockEffect method getManaCostToPay.
@Override
public ManaCosts getManaCostToPay(GameEvent event, Ability source, Game game) {
Player controller = game.getPlayer(source.getControllerId());
if (controller != null && !controller.getHand().isEmpty()) {
ManaCosts manaCosts = new ManaCostsImpl();
manaCosts.add(new GenericManaCost(controller.getHand().size()));
return manaCosts;
}
return null;
}
Aggregations