* Fixed possible null pointer exception of AddManaOfAnyColorTargetCanProduceEffect.

This commit is contained in:
LevelX2 2014-11-05 00:54:31 +01:00
parent 5ac9e5c5db
commit 7b24142f52

View file

@ -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);