diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-08 12:05:21 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:50:08 +0200 |
| commit | a1f257846d6e496cd9c5ba36eff1624e52821d7d (patch) | |
| tree | 095758a8df89df1d6c39ab2298036ad65596607f | |
| parent | 24a6e356b1b3c1134a0cbef1fbbde39c376b8d89 (diff) | |
| download | muhqs-game-a1f257846d6e496cd9c5ba36eff1624e52821d7d.tar.gz muhqs-game-a1f257846d6e496cd9c5ba36eff1624e52821d7d.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 { |
