ruby: fix unit_idlers

develop
jj 2012-07-11 23:24:53 +02:00
parent 8f8f25384c
commit b0edb33023
1 changed files with 1 additions and 1 deletions

@ -63,7 +63,7 @@ module DFHack
# current_job includes eat/drink/sleep/pickupequip
!u.job.current_job and
# filter 'attend meeting'
u.meetings.length == 0 and
not u.specific_refs.find { |s| s.type == :ACTIVITY } and
# filter soldiers (TODO check schedule)
u.military.squad_index == -1 and
# filter 'on break'