another attempt at fixing the issue with AI not attacking when allied