mirror of
https://github.com/correl/mage.git
synced 2025-04-01 19:07:57 -09:00
Finish adding Dreamborn Muse
This commit is contained in:
parent
bb4f145bb6
commit
b29bb5ac15
2 changed files with 9 additions and 9 deletions
Mage.Sets/src/mage/sets/legions
Mage/src/mage/abilities/dynamicvalue/common
|
@ -30,7 +30,7 @@ package mage.sets.legions;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.common.CardsInTargetHandCount;
|
||||
import mage.abilities.dynamicvalue.common.CardsInTargetPlayerHandCount;
|
||||
import mage.abilities.effects.common.PutLibraryIntoGraveTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.CardType;
|
||||
|
@ -49,9 +49,13 @@ public class DreambornMuse extends CardImpl {
|
|||
this.subtype.add("Spirit");
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
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(new PutLibraryIntoGraveTargetEffect(new CardsInTargetHandCount()), TargetController.ANY, false));
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(effect, TargetController.ANY, false));
|
||||
|
||||
}
|
||||
|
||||
public DreambornMuse(final DreambornMuse card) {
|
||||
|
@ -63,7 +67,3 @@ public class DreambornMuse extends CardImpl {
|
|||
return new DreambornMuse(this);
|
||||
}
|
||||
}
|
||||
|
||||
class DreambornMuseEffect {
|
||||
|
||||
}
|
||||
|
|
|
@ -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
Reference in a new issue