From 82cd151b4c331ffd271dc727fc7d1726fc31c567 Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Mon, 16 Sep 2024 16:38:26 +0200 Subject: [PATCH] Start combat music for fleeing actors that haven't drawn a weapon --- files/data/scripts/omw/music/actor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/data/scripts/omw/music/actor.lua b/files/data/scripts/omw/music/actor.lua index 4890387e54..8f3ac7915a 100755 --- a/files/data/scripts/omw/music/actor.lua +++ b/files/data/scripts/omw/music/actor.lua @@ -24,7 +24,7 @@ local function onUpdate() -- Early-out for actors without targets and without combat state -- TODO: use events or engine handlers to detect when targets change local isStanceNothing = types.Actor.getStance(self) == types.Actor.STANCE.Nothing - if isStanceNothing and next(targets) == nil then + if isStanceNothing and next(targets) == nil and not AI.isFleeing() then return end