Skip to content

Commit 4166c77

Browse files
committed
[bugfix] Allow own goals in Goal event
1 parent dbc4616 commit 4166c77

File tree

3 files changed

+182
-169
lines changed

3 files changed

+182
-169
lines changed

internal/app/controller/gameEvent.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -574,14 +574,14 @@ func (d GameEventDetails) String() string {
574574
return ""
575575
}
576576
if d.Goal != nil {
577-
if d.Goal.ByBot != nil {
578-
return fmt.Sprintf("By bot %v", *d.Goal.ByBot)
577+
if d.Goal.KickingBot != nil {
578+
return fmt.Sprintf("By bot %v", *d.Goal.KickingBot)
579579
}
580580
return ""
581581
}
582582
if d.PossibleGoal != nil {
583-
if d.PossibleGoal.ByBot != nil {
584-
return fmt.Sprintf("By bot %v", *d.PossibleGoal.ByBot)
583+
if d.PossibleGoal.KickingBot != nil {
584+
return fmt.Sprintf("By bot %v", *d.PossibleGoal.KickingBot)
585585
}
586586
return ""
587587
}

0 commit comments

Comments
 (0)