07-06-2013, 04:41 PM
I think I can see the probelm. When the AI selects a skill, it probably doesn't set the 'skills' bit because it didn't use the command list to pick it. try something like
Code:
flag2 = self.current_action.command.skills == nil || !self.current_action.command.skills.empty?