mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 04:22:01 -08:00
Changed Declaration in Stone to exile to the generic exile window instead of its own. Added card name identifier to the revealed hand in ExileCardYouChooseTargetOpponentEffect so you can see previously revealed cards when their hand is revealed multiple times.
This commit is contained in:
parent
c8bafff7e3
commit
20d09443d5
2 changed files with 10 additions and 9 deletions
|
|
@ -65,9 +65,10 @@ public class ExileCardYouChooseTargetOpponentEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
Player opponent = game.getPlayer(source.getFirstTarget());
|
||||
Card sourceCard = game.getCard(source.getSourceId());
|
||||
if (controller != null && opponent != null) {
|
||||
if (!opponent.getHand().isEmpty()) {
|
||||
opponent.revealCards("Exile " + filter.getMessage(), opponent.getHand(), game);
|
||||
opponent.revealCards(sourceCard != null ? sourceCard.getIdName() + " (" + sourceCard.getZoneChangeCounter(game) + ")" : "Exile", opponent.getHand(), game);
|
||||
TargetCard target = new TargetCard(Zone.HAND, filter);
|
||||
if (controller.choose(Outcome.Exile, opponent.getHand(), target, game)) {
|
||||
Card card = opponent.getHand().get(target.getFirstTarget(), game);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue