mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Check if choice.getColor() is null
This commit is contained in:
parent
262d048893
commit
4c73c93866
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class SearingRaysEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
ChoiceColor choice = new ChoiceColor();
|
||||
if (controller != null && controller.choose(outcome, choice, game)) {
|
||||
if (controller != null && controller.choose(outcome, choice, game) && choice.getColor() != null) {
|
||||
FilterCreaturePermanent filter = new FilterCreaturePermanent(choice.getColor().getDescription()+" creatures");
|
||||
filter.add(new ColorPredicate(choice.getColor()));
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
|
|
Loading…
Reference in a new issue