Add combat job with safe target filtering
This commit is contained in:
1 parent
2ecaa9a30a
commit
1b9f973db3
12 files changed
+486
-7
No files matched your search
@@ -248,6 +248,11 @@ class ThreatMonitor:
|
||||
if job is None or job.state == job.idle:
|
||||
self.next_scan_at = 0.0
|
||||
return
|
||||
if getattr(job.state, '__name__', None) == 'combat':
|
||||
# Combat deliberately engages hostile mobs, so evacuation must not
|
||||
# suspend the combat job before it can attack them.
|
||||
self.next_scan_at = 0.0
|
||||
return
|
||||
now = time.monotonic()
|
||||
if now < self.next_scan_at:
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user