mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
[AFR] Implemented Wish
This commit is contained in:
parent
20245f32f6
commit
1c3b42996d
3 changed files with 112 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue