mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
* Fixed possible null pointer exception of AddManaOfAnyColorTargetCanProduceEffect.
This commit is contained in:
parent
5ac9e5c5db
commit
7b24142f52
1 changed files with 3 additions and 0 deletions
|
@ -91,6 +91,9 @@ public class AddManaOfAnyColorTargetCanProduceEffect extends ManaEffect {
|
|||
} else {
|
||||
player.choose(outcome, choice, game);
|
||||
}
|
||||
if (choice.getChoice() == null) {
|
||||
return false;
|
||||
}
|
||||
switch (choice.getChoice()) {
|
||||
case "Black":
|
||||
player.getManaPool().addMana(Mana.BlackMana, game, source);
|
||||
|
|
Loading…
Reference in a new issue