forked from External/mage
Improved message for DredgeAbility
This commit is contained in:
parent
545a93ed6d
commit
7610013628
1 changed files with 5 additions and 1 deletions
|
|
@ -92,9 +92,13 @@ class DredgeEffect extends ReplacementEffectImpl<DredgeEffect> {
|
|||
|
||||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
Card sourceCard = game.getCard(source.getSourceId());
|
||||
if (sourceCard == null) {
|
||||
return false;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("Put exactly ").append(amount).append(" cards from the top of your library into your graveyard?");
|
||||
sb.append(" If you do, return this card from your graveyard to your hand. Otherwise, draw a card.");
|
||||
sb.append(" If you do, return ").append(sourceCard.getName()).append(" from your graveyard to your hand. Otherwise, draw a card.");
|
||||
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player != null && player.getLibrary().size() >= amount && player.chooseUse(outcome, sb.toString(), game)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue