mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
* London mulligan - fixed wrong cards number in logs;
This commit is contained in:
parent
0f2eb4dd58
commit
abbbb5dafd
1 changed files with 7 additions and 6 deletions
|
@ -91,6 +91,7 @@ public class LondonMulligan extends Mulligan {
|
|||
}
|
||||
}
|
||||
openingHandSizes.put(playerId, openingHandSizes.get(playerId) - deduction);
|
||||
int newHandSize = openingHandSizes.get(player.getId());
|
||||
if (deduction == 0) {
|
||||
game.fireInformEvent(new StringBuilder(player.getLogName())
|
||||
.append(" mulligans for free.")
|
||||
|
@ -99,14 +100,13 @@ public class LondonMulligan extends Mulligan {
|
|||
game.fireInformEvent(new StringBuilder(player.getLogName())
|
||||
.append(" mulligans")
|
||||
.append(" down to ")
|
||||
.append((numCards - deduction))
|
||||
.append(numCards - deduction == 1 ? " card" : " cards").toString());
|
||||
.append(newHandSize)
|
||||
.append(newHandSize == 1 ? " card" : " cards").toString());
|
||||
}
|
||||
player.drawCards(numCards, game);
|
||||
|
||||
int handSize = openingHandSizes.get(player.getId());
|
||||
if (player.getHand().size() > handSize) {
|
||||
int cardsToDiscard = player.getHand().size() - handSize;
|
||||
if (player.getHand().size() > newHandSize) {
|
||||
int cardsToDiscard = player.getHand().size() - newHandSize;
|
||||
Cards cards = new CardsImpl();
|
||||
cards.addAll(player.getHand());
|
||||
TargetCard target = new TargetCard(cardsToDiscard, cardsToDiscard, Zone.HAND,
|
||||
|
@ -118,7 +118,8 @@ public class LondonMulligan extends Mulligan {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void endMulligan(Game game, UUID playerId) {}
|
||||
public void endMulligan(Game game, UUID playerId) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public LondonMulligan copy() {
|
||||
|
|
Loading…
Reference in a new issue