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