mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
* Restore Balance - Fixed possible null pointer exception.
This commit is contained in:
parent
04648eb0eb
commit
088278c6a3
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ class RestoreBalanceEffect extends OneShotEffect {
|
|||
|
||||
for (UUID playerId : controller.getInRange()) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
if (player != null && cardsToDiscard.get(playerId) != null) {
|
||||
for (UUID cardId : cardsToDiscard.get(playerId)) {
|
||||
Card card = game.getCard(cardId);
|
||||
if (card != null) {
|
||||
|
|
Loading…
Reference in a new issue