Fixed bug which prevented agents to attack