mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 06:15:32 +00:00
Merge branch 'fleemeirl' into 'master'
Start combat music for fleeing actors that haven't drawn a weapon Closes #8159 See merge request OpenMW/openmw!4374
This commit is contained in:
commit
9be31b66db
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue