mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 12:19:59 -08: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…
Add table
Add a link
Reference in a new issue