diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-04 18:51:31 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:47 +0100 |
| commit | e9070ef3752c5d2ab1f9faac48095995772ce726 (patch) | |
| tree | d1842db95e73039224476d0a5794d951e3fdfb3b /go/game/cardImplementations.go | |
| parent | ea54efacae089aa3644cfe00c8e180d5cc2c8d9e (diff) | |
| download | muhqs-game-e9070ef3752c5d2ab1f9faac48095995772ce726.tar.gz muhqs-game-e9070ef3752c5d2ab1f9faac48095995772ce726.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.go | 2 |
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 } |
