From 262fc7fb41f14181ed34cecfcca9ef2d25102688 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sat, 5 Oct 2019 16:25:43 -0400 Subject: Don't move creatures when they're attacking This may have resulted in a double-attack per turn --- src/Xanthous/AI/Gormlak.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Xanthous/AI/Gormlak.hs b/src/Xanthous/AI/Gormlak.hs index c9af68842635..68feb67ac227 100644 --- a/src/Xanthous/AI/Gormlak.hs +++ b/src/Xanthous/AI/Gormlak.hs @@ -36,7 +36,7 @@ stepGormlak pe@(Positioned pos creature) = do then do charPos <- use characterPosition if isUnit (pos `diffPositions` charPos) - then attackCharacter $> charPos + then attackCharacter $> pos else pure $ pos `stepTowards` charPos else do lines <- uses entities $ linesOfSight pos (Creature.visionRadius creature) -- cgit 1.4.1