From 8c3456f5a120a00f8a4e89065d7d50f2c1b4ad0d Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 4 Feb 2023 18:51:31 +0100 Subject: improve permanent pile support * Fix alot of bugs caused by permanents without tiles * Implement a permanent choice to select the permanents in a pile * Fix how pile hooks are called --- go/game/cardImplementations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'go/game/cardImplementations.go') diff --git a/go/game/cardImplementations.go b/go/game/cardImplementations.go index b20b46bc..be625211 100644 --- a/go/game/cardImplementations.go +++ b/go/game/cardImplementations.go @@ -56,7 +56,7 @@ func (*swordImplementation) onPile(p Permanent) { } } -func (*swordImplementation) onDrop(p Permanent) { +func (*swordImplementation) onUnpile(p Permanent) { if u, ok := p.(*Unit); ok && !INVALID_ATTACK(u.Attack) { u.Attack.attacks[0] -= 1 } -- cgit v1.2.3