From 7d837dd91a50fd595acd679e84352b0a4dbcdf63 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 4 Feb 2023 13:04:31 +0100 Subject: fix IsValidAttack unit type assertion --- go/game/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/game/state.go b/go/game/state.go index 6ca100c8..15b6b226 100644 --- a/go/game/state.go +++ b/go/game/state.go @@ -138,7 +138,7 @@ func (s *State) IsValidAttack(a *AttackAction) error { return fmt.Errorf("Attack actions can only be declared during one's actions phase") } - unit := a.Source().(Unit) + unit := a.Source().(*Unit) if INVALID_ATTACK(unit.Attack) { return fmt.Errorf("%s can not attack", unit.card.Name) } -- cgit v1.2.3