[AFR] Implemented Wish

This commit is contained in:
Daniel Bomar 2021-07-15 10:36:17 -05:00
parent 20245f32f6
commit 1c3b42996d
No known key found for this signature in database
GPG key ID: C86C8658F4023918
3 changed files with 112 additions and 0 deletions

View file

@ -3653,6 +3653,13 @@ public abstract class PlayerImpl implements Player, Serializable {
getPlayableFromObjectAll(game, Zone.OUTSIDE, card, availableMana, playable);
}
}
// Check sideboard. Ex: Wish lets player play cards directly from sideboard.
for (UUID sideboardCardId : getSideboard()) {
Card sideboardCard = game.getCard(sideboardCardId);
if (sideboardCard != null) {
getPlayableFromObjectAll(game, Zone.OUTSIDE, sideboardCard, availableMana, playable);
}
}
}
// check if it's possible to play the top card of a library