Skip to content

Commit d8a7363

Browse files
committed
Add match commentary for possession lost to opponent goalkeeper outside the box
1 parent c8ed8c3 commit d8a7363

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/openengine/mpn/Match.java

+2
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ private String getCommentary(ProcessUnit record) {
198198
&& statement.getInitialState() != State.GOAL_ATTEMPT) {
199199
if (outcomePitchPosition == GK) {
200200
commentary.append(": ball falls to opponent goalkeeper");
201+
} else if (outcomePitchPosition == GD) {
202+
commentary.append(": ball to the opponent goalkeeper outside their area");
201203
} else {
202204
if (statement.getEndState().equals(State.GOALKEEPER)) {
203205
commentary.append("...opponent goalkeeper takes hold of the ball");

0 commit comments

Comments
 (0)