From c696829f9e37e9f3752fdb89ebaadd4b3b237bea Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 2 Aug 2025 14:47:01 +0200 Subject: add support for flexible attacks --- go/game/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'go/game/state.go') diff --git a/go/game/state.go b/go/game/state.go index 8901aed7..f6bcbc8e 100644 --- a/go/game/state.go +++ b/go/game/state.go @@ -319,7 +319,7 @@ func (s *LocalState) IsValidAttack(a *AttackAction) error { } unit := a.Source().(*Unit) - if INVALID_ATTACK(unit.Attack) { + if !unit.Attack.Valid() { return fmt.Errorf("%s can not attack", unit.card.Name) } -- cgit v1.2.3