attack only possible when nearby enemy