From b0edb330233e7a5ae0db9f079ad5db487eabcd20 Mon Sep 17 00:00:00 2001 From: jj Date: Wed, 11 Jul 2012 23:24:53 +0200 Subject: [PATCH] ruby: fix unit_idlers --- plugins/ruby/unit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'