Initial work on Dreamborn Muse

This commit is contained in:
Brian Hill 2015-06-12 10:22:28 -04:00
parent 40e22d9f49
commit bb4f145bb6
4 changed files with 204 additions and 0 deletions

View file

@ -0,0 +1,31 @@
package mage.abilities.dynamicvalue.common;
import mage.abilities.Ability;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.effects.Effect;
import mage.game.Game;
import mage.players.Player;
/**
*
* @author cbrianhill
*/
public class CardsInTargetHandCount implements DynamicValue {
@Override
public int calculate(Game game, Ability sourceAbility, Effect effect) {
Player player = game.getPlayer(sourceAbility.getFirstTarget());
return player.getHand().size();
}
@Override
public DynamicValue copy() {
return new CardsInTargetHandCount();
}
@Override
public String getMessage() {
return "cards in target player's hand";
}
}