diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-04 14:37:15 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:47 +0100 |
| commit | ea54efacae089aa3644cfe00c8e180d5cc2c8d9e (patch) | |
| tree | 8b83151059e1d7661a366d350ef18eb913f4ce3d /go/game/attack.go | |
| parent | 9fc26075aa486e6887dbb28640224bffd1d57330 (diff) | |
| download | muhqs-game-ea54efacae089aa3644cfe00c8e180d5cc2c8d9e.tar.gz muhqs-game-ea54efacae089aa3644cfe00c8e180d5cc2c8d9e.zip | |
support crewing
* Introduce new callback for leaving a pile without beeing dropped
* Fix equipment contrsuctor
* Implement attack inheritance
Diffstat (limited to 'go/game/attack.go')
| -rw-r--r-- | go/game/attack.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/game/attack.go b/go/game/attack.go index 35af7ff2..0d3bef7c 100644 --- a/go/game/attack.go +++ b/go/game/attack.go @@ -12,7 +12,7 @@ type Attack struct { } func INVALID_ATTACK(a Attack) bool { - return a.attacks == nil + return a.attacks == nil || len(a.attacks) == 0 } func (a Attack) MaxRange() int { |
