mirror of
https://github.com/correl/mage.git
synced 2025-04-13 17:00:09 -09:00
Minor changes to Dreamborn Muse.
This commit is contained in:
parent
c987ae7a21
commit
ae2eb8bb50
2 changed files with 5 additions and 3 deletions
Mage.Sets/src/mage/sets/legions
Mage/src/mage/abilities/dynamicvalue/common
|
@ -50,10 +50,9 @@ public class DreambornMuse extends CardImpl {
|
|||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// At the beginning of each player's upkeep, that player puts the top X cards of his or her library into his or her graveyard, where X is the number of cards in his or her hand.
|
||||
PutLibraryIntoGraveTargetEffect effect = new PutLibraryIntoGraveTargetEffect(new CardsInTargetPlayerHandCount());
|
||||
effect.setText("that player puts the top X cards of his or her library into his or her graveyard, where X is the number of cards in his or her hand.");
|
||||
|
||||
// At the beginning of each player's upkeep, that player puts the top X cards of his or her library into his or her graveyard, where X is the number of cards in his or her hand.
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(effect, TargetController.ANY, false));
|
||||
|
||||
}
|
||||
|
|
|
@ -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
Reference in a new issue