guards don't follow in wilderness cells

This commit is contained in:
Lilian Jónsdóttir 2021-08-22 00:20:05 -07:00
parent 845d549760
commit 57b91895f5

View file

@ -34,6 +34,9 @@ local function doChecks(e)
if not e.detector.object.isGuard then return false end
if e.target ~= tes3.mobilePlayer then return false end
-- don't bother following in outside wilderness cells
if not tes3.player.cell.restingIsIllegal then return false end
if e.detector.inCombat then
log("Busy with combat, not following...")
return false