From 8f0404c5d05cd4c19edbb06448fcdee013890a52 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 8 Feb 2023 12:05:21 +0100 Subject: fix unit onPile hook argument forwarding --- go/game/unit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3