forked from External/mage
spjspj - Add Rich Man Cube draft. This is a variation on the Rich Man set draft. It still (like cube) shouldn't let there be more than one copy of a card in the draft but will give each player a new pack from the cards that haven't been picked already each time. Allows 2 player cube drafts to be playable.
This commit is contained in:
parent
c1c63c7c91
commit
2eb68403cf
4 changed files with 238 additions and 0 deletions
|
|
@ -139,4 +139,17 @@ public abstract class DraftCube {
|
|||
|
||||
return booster;
|
||||
}
|
||||
|
||||
void removeFromLeftCards(CardIdentity cardId) {
|
||||
if (cardId == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = leftCubeCards.size() - 1; i >= 0; i--) {
|
||||
if (leftCubeCards.get(i) == cardId) {
|
||||
leftCubeCards.remove(i);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue