Skip to content

Commit 3b0651f

Browse files
committed
Add match commentary for rebound after goal attempt
1 parent 9a2d311 commit 3b0651f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ private String getCommentary(ProcessUnit record) {
114114
commentary.append(". Attempt is blocked...");
115115
switch (statement.getGoalAttemptOutcome()) {
116116
case CORNER -> commentary.append("corner.");
117+
case ATTACK -> {
118+
commentary.append(teamName);
119+
commentary.append(" on the rebound at pitch position ");
120+
commentary.append(outcomePitchPosition);
121+
attachPitchPositionDescription(outcomePitchPosition, commentary);
122+
}
117123
}
118124
}
119125
case SAVE -> {

0 commit comments

Comments
 (0)