aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go/game/state.go2
1 files changed, 1 insertions, 1 deletions
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)
}