{"action":"closed","issue":{"url":"https://api.github.com/repos/codecombat/codecombat/issues/2260","labels_url":"https://api.github.com/repos/codecombat/codecombat/issues/2260/labels{/name}","comments_url":"https://api.github.com/repos/codecombat/codecombat/issues/2260/comments","events_url":"https://api.github.com/repos/codecombat/codecombat/issues/2260/events","html_url":"https://github.com/codecombat/codecombat/issues/2260","id":56944837,"number":2260,"title":"Sarven Brawl stuck at loop?","user":{"login":"nickhill","id":1440805,"avatar_url":"https://avatars.githubusercontent.com/u/1440805?v=3","gravatar_id":"","url":"https://api.github.com/users/nickhill","html_url":"https://github.com/nickhill","followers_url":"https://api.github.com/users/nickhill/followers","following_url":"https://api.github.com/users/nickhill/following{/other_user}","gists_url":"https://api.github.com/users/nickhill/gists{/gist_id}","starred_url":"https://api.github.com/users/nickhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickhill/subscriptions","organizations_url":"https://api.github.com/users/nickhill/orgs","repos_url":"https://api.github.com/users/nickhill/repos","events_url":"https://api.github.com/users/nickhill/events{/privacy}","received_events_url":"https://api.github.com/users/nickhill/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-08T09:03:53Z","updated_at":"2015-02-09T02:39:06Z","closed_at":"2015-02-09T02:39:06Z","body":"Hi - \r\nSarven Brawl hangs with 'loop:' highlighted ( I think that means the currently running step? ).\r\n\r\nI simplified the code to the following to try to isolate the problem:\r\n\r\n\r\nloop:\r\n    e = self.findNearest(self.findEnemies())\r\n    if ((e is not None ) and ( e.type != 'sand-yak' )):\r\n        while e.health > 0:\r\n            self.attack(e)\r\n\r\n\r\nThis works as expected for the first 5 or 8 enemies but fails after\r\na bit. A bunch of throwers show up and they are easily visible\r\nthough they tend to cluster around yaks. I had my warrior move\r\na bit if no enemies could be seen (instead of staying put), same\r\nresult as long as I didn't move very far. Move very far and the \r\nsituation resolves itself, but it can happen in other arrangements - \r\nyour warrior will just sit around and get shot to 0 health.\r\n\r\nSee screenshot attached - clearly at least 2 of the throwers should be visible\r\nand I'm not even clear that a yak can occlude another enemy to the point where \r\nit can shoot you but you can't see it?\r\n\r\n\r\n![sarven_brawl_fail](https://cloud.githubusercontent.com/assets/1440805/6095989/b3658bfc-af2d-11e4-9ff5-271f1d425e9d.png)\r\n\r\n"}}