diff --git a/plugins/ruby/unit.rb b/plugins/ruby/unit.rb index 04deee0e3..5b279d0d1 100644 --- a/plugins/ruby/unit.rb +++ b/plugins/ruby/unit.rb @@ -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'