Skip to content

Commit 3281260

Browse files
committed
[bugfix] Set placement position correctly for multiple cards event
1 parent 5c27b42 commit 3281260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/app/controller/placementPos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (e *Engine) BallPlacementPos() *Location {
8181
return e.validateLocation(e.State.PlacementPos)
8282
case GameEventDefenderInDefenseAreaPartially:
8383
return e.validateProtoLocation(event.Details.DefenderInDefenseAreaPartially.Location)
84-
case GameEventDefenderInDefenseArea:
84+
case GameEventDefenderInDefenseArea, GameEventMultipleCards:
8585
teamInFavor := event.ByTeam().Opposite()
8686
location := Location{}
8787
location.X = (e.Geometry.FieldLength / 2.0) - e.Geometry.DefenseAreaDepth

0 commit comments

Comments
 (0)