aboutsummaryrefslogtreecommitdiff
path: root/go/game/ai.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/game/ai.go')
-rw-r--r--go/game/ai.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/game/ai.go b/go/game/ai.go
index 0adce722..38823257 100644
--- a/go/game/ai.go
+++ b/go/game/ai.go
@@ -64,8 +64,8 @@ func NewUnitAI(s *State, u *Unit) *UnitAI {
case "shy":
go ai.Execute(ShyAI)
case "wandering":
- aiDesc := u.Card().getAI()
- x, err := strconv.Atoi(strings.Split(u.Card().getAI(), " ")[1])
+ aiDesc := u.Card().getCanonicalValues("ai")[0]
+ x, err := strconv.Atoi(strings.Split(aiDesc, " ")[1])
if err != nil {
log.Fatalf("Invalid wandering AI description %s", aiDesc)
}