aboutsummaryrefslogtreecommitdiff
path: root/go/game/cardImplementations.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-04 18:51:31 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:46:40 +0200
commit8c3456f5a120a00f8a4e89065d7d50f2c1b4ad0d (patch)
tree6e201152c264184bcd5aad784386654e921c8634 /go/game/cardImplementations.go
parent083ec284a9ef286729e544df9340a12760f03ab7 (diff)
downloadmuhqs-game-8c3456f5a120a00f8a4e89065d7d50f2c1b4ad0d.tar.gz
muhqs-game-8c3456f5a120a00f8a4e89065d7d50f2c1b4ad0d.zip
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
Diffstat (limited to 'go/game/cardImplementations.go')
-rw-r--r--go/game/cardImplementations.go2
1 files changed, 1 insertions, 1 deletions
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
}