diff options
Diffstat (limited to 'go/game/targets.go')
| -rw-r--r-- | go/game/targets.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/go/game/targets.go b/go/game/targets.go index 9bfd1378..56ec9b30 100644 --- a/go/game/targets.go +++ b/go/game/targets.go @@ -478,6 +478,8 @@ func attackableTargetConstraint(action Action) TargetConstraintFunc { func posFromTileOrPermanent(tileOrPermanent any) Position { switch obj := tileOrPermanent.(type) { + case Position: + return obj case *Tile: return obj.Position case Permanent: |
