diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-08 12:05:21 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-02-08 12:05:21 +0100 |
| commit | 522df51f2c5cfa472335cd3aa332a10beea99e3f (patch) | |
| tree | 421da5f7d9cefa0c987364b18b448858f7130050 | |
| parent | 844e6431ef2ed4127ffbba1d46faa3d89dabf7a9 (diff) | |
| download | muhqs-game-522df51f2c5cfa472335cd3aa332a10beea99e3f.tar.gz muhqs-game-522df51f2c5cfa472335cd3aa332a10beea99e3f.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 { |
