forked from External/mage
new RegenerateAllEffect, minor change to ExileFromZoneTargetEffect
This commit is contained in:
parent
d189877907
commit
306e4ed845
2 changed files with 82 additions and 5 deletions
|
|
@ -93,8 +93,9 @@ public class ExileFromZoneTargetEffect extends OneShotEffect<ExileFromZoneTarget
|
|||
if (target.choose(Outcome.Exile, player.getId(), source.getSourceId(), game)) {
|
||||
for (UUID cardId: target.getTargets()) {
|
||||
Card card = game.getCard(cardId);
|
||||
if (card != null)
|
||||
if (card != null) {
|
||||
card.moveToExile(exileId, exileName, source.getSourceId(), game);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
@ -109,10 +110,12 @@ public class ExileFromZoneTargetEffect extends OneShotEffect<ExileFromZoneTarget
|
|||
}
|
||||
|
||||
private void setText() {
|
||||
if (amount == 1)
|
||||
staticText = "Target player exiles a " + filter.getMessage() + " from his or her " + zone.toString();
|
||||
else
|
||||
staticText = "Target player exiles " + amount + " " + filter.getMessage() + " from his or her " + zone.toString();
|
||||
if (amount == 1) {
|
||||
staticText = "Target player exiles a " + filter.getMessage() + " from his or her " + zone.toString().toLowerCase();
|
||||
}
|
||||
else {
|
||||
staticText = "Target player exiles " + amount + " " + filter.getMessage() + " from his or her " + zone.toString().toLowerCase();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue