mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Hideaway - Fixed that the face down card played by hideaway was not correctly set face up again.
This commit is contained in:
parent
eaa7b6a71c
commit
554e81a462
4 changed files with 108 additions and 25 deletions
|
|
@ -66,7 +66,13 @@ public class HideawayPlayEffect extends OneShotEffect {
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (card != null && controller != null) {
|
||||
if (controller.chooseUse(Outcome.PlayForFree, "Do you want to play " + card.getIdName() + " for free now?", source, game)) {
|
||||
controller.playCard(card, game, true, false);
|
||||
card.setFaceDown(false, game);
|
||||
int zcc = card.getZoneChangeCounter(game);
|
||||
if (!controller.playCard(card, game, true, false)) {
|
||||
if (card.getZoneChangeCounter(game) == zcc) {
|
||||
card.setFaceDown(true, game);
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue