diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-08-02 14:47:01 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:33 +0200 |
| commit | c696829f9e37e9f3752fdb89ebaadd4b3b237bea (patch) | |
| tree | a205a17da9618e04f61e44d49cb028ede23dd732 /go/ui/textBox.go | |
| parent | ca083639a4b52215b39bb863031f71c0a8209ee9 (diff) | |
| download | muhqs-game-c696829f9e37e9f3752fdb89ebaadd4b3b237bea.tar.gz muhqs-game-c696829f9e37e9f3752fdb89ebaadd4b3b237bea.zip | |
add support for flexible attacks
Diffstat (limited to 'go/ui/textBox.go')
| -rw-r--r-- | go/ui/textBox.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/ui/textBox.go b/go/ui/textBox.go index 7a3772f0..287c2a89 100644 --- a/go/ui/textBox.go +++ b/go/ui/textBox.go @@ -80,7 +80,7 @@ func NewUnitInfo(x, y int, u *game.Unit) *TextBox { info = fmt.Sprintf("%s\nMovement: %s", info, u.Movement.String()) } - if !game.INVALID_ATTACK(u.Attack) { + if u.Attack.Valid() { info = fmt.Sprintf("%s\nAttack: %s", info, u.Attack.String()) } |
