diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-08 12:05:21 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:48 +0100 |
| commit | 8f0404c5d05cd4c19edbb06448fcdee013890a52 (patch) | |
| tree | baf1b53ced0e26bc3f047994431867a6e8f3c4bb | |
| parent | 3fcf06b681705cfceb05833e5ee57a7ddc6445b3 (diff) | |
| download | muhqs-game-8f0404c5d05cd4c19edbb06448fcdee013890a52.tar.gz muhqs-game-8f0404c5d05cd4c19edbb06448fcdee013890a52.zip | |
fix unit onPile hook argument forwarding
| -rw-r--r-- | go/game/unit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/game/unit.go b/go/game/unit.go index a2934296..8b57b0ae 100644 --- a/go/game/unit.go +++ b/go/game/unit.go @@ -206,7 +206,7 @@ func (u *Unit) AvailActions() (actions []Action) { } func (u *Unit) onPile(containing Permanent) { - u.PermanentBase.onPile(u) + u.PermanentBase.onPile(containing) if baseUnit, ok := containing.(*Unit); ok { baseUnitAttackRange := baseUnit.Attack.MaxRange() for r, a := range u.Attack.attacks { |
