Skip to content

Commit

Permalink
Add default case
Browse files Browse the repository at this point in the history
  • Loading branch information
jimga150 committed Jul 24, 2024
1 parent d1f8e64 commit ee1a17e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ public boolean checkTrigger(GameEvent event, Game game) {
return enteringPermanents.anyMatch(permanent -> permanent.getControllerId().equals(this.controllerId));
case OPPONENT:
return enteringPermanents.anyMatch(permanent -> controller.hasOpponent(permanent.getControllerId(), game));
default:
throw new IllegalArgumentException("Unsupported target: " + this.targetController);
}
return false;
}

@Override
Expand Down

0 comments on commit ee1a17e

Please sign in to comment.