mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
Finish adding Dreamborn Muse
This commit is contained in:
parent
bb4f145bb6
commit
b29bb5ac15
2 changed files with 9 additions and 9 deletions
|
|
@ -10,17 +10,17 @@ import mage.players.Player;
|
|||
*
|
||||
* @author cbrianhill
|
||||
*/
|
||||
public class CardsInTargetHandCount implements DynamicValue {
|
||||
public class CardsInTargetPlayerHandCount implements DynamicValue {
|
||||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
Player player = game.getPlayer(sourceAbility.getFirstTarget());
|
||||
Player player = game.getPlayer(effect.getTargetPointer().getFirst(game, sourceAbility));
|
||||
return player.getHand().size();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue copy() {
|
||||
return new CardsInTargetHandCount();
|
||||
return new CardsInTargetPlayerHandCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
Loading…
Add table
Add a link
Reference in a new issue