mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Fixed some possible null pointer exceptions.
This commit is contained in:
parent
01ca3689b3
commit
e8ab8558d1
2 changed files with 2 additions and 2 deletions
|
|
@ -146,7 +146,7 @@ public class DynamicManaEffect extends BasicManaEffect {
|
|||
} else {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
ChoiceColor choiceColor = new ChoiceColor();
|
||||
ChoiceColor choiceColor = new ChoiceColor(true);
|
||||
for (int i = 0; i < count; i++) {
|
||||
if (!choiceColor.isChosen()) {
|
||||
while (!controller.choose(Outcome.Benefit, choiceColor, game)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue