forked from External/mage
Minor changes to Dreamborn Muse.
This commit is contained in:
parent
c987ae7a21
commit
ae2eb8bb50
2 changed files with 5 additions and 3 deletions
|
|
@ -15,7 +15,10 @@ public class CardsInTargetPlayerHandCount implements DynamicValue {
|
|||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
Player player = game.getPlayer(effect.getTargetPointer().getFirst(game, sourceAbility));
|
||||
return player.getHand().size();
|
||||
if (player != null) {
|
||||
return player.getHand().size();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue