{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/101","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/101/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/101/events","html_url":"https://github.com/chrsmith/bwapi/issues/101","id":58670429,"number":101,"title":"Right-clicking on enemy unit does not always result in attack command","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Priority-High","name":"Priority-High","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-23T23:55:21Z","updated_at":"2015-02-23T23:55:22Z","closed_at":"2015-02-23T23:55:22Z","body":"```\nWhat steps will reproduce the problem?\n\nI have attached a simple AI (AttackFailsAI) and a simple map (AITestMap)\nthat reproduce the issue.\n\nTo reproduce the issue, create a singleplayer UMS game on AITestMap with\nAttackFailsAI loaded.\n\nAttackFailsAI sets the complete map information flag to true (for\nsimplicity). Each frame, the AI finds a friendly worker and an enemy\nworker. If there is any enemy worker, the AI orders the friendly worker to\nright-click on the enemy worker it found.\n\nAITestMap consists of a single probe and an SCV (with health reduced to 5\nto make testing faster), along with one trigger, which creates a new SCV\nwhen the old one dies.\n\n\nWhat is the expected output? What do you see instead?\n\nExpected: The probe should kill SCVs indefinitely.\n\nObserved: The probe kills 3 SCVs and then stops killing them. Selecting the\nprobe reveals that its \"Move\" command is highlighted.\n\n\nWhat version of the product are you using? On what operating system?\n\nBeta 2.1.4 on Windows XP\n\n\nPlease provide any additional information below.\n\nOn my machine, there is a \"big difference\" between the values of Unit* for\nthe SCVs the probe fails to attack and the ones the probe successfully\nattacks. I don't see why the memory address should be related to anything,\nbut it might be worth taking a look at them.\n\nCreating new SCVs after old ones have died is important. I have yet to see\nan SCV failed to be attacked if is created before any other SCVs have died.\nIt's easy to observe this by just adding a few more SCVs to the AITestMap,\nand note that they all get killed. I originally found this issue on a\nnormal map vs the default StarCraft AI, where my probes would kill the\ninitially-produced SCVs but would sometimes fail to kill newly-produced SCVs.\n```\n\n-----\nOriginal issue reported on code.google.com by `sharpe.m...@gmail.com` on 16 Nov 2009 at 3:18\n\nAttachments:\n* [AttackFailsExample.zip](https://storage.googleapis.com/google-code-attachments/bwapi/issue-101/comment-0/AttackFailsExample.zip)\n"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75665292","html_url":"https://github.com/chrsmith/bwapi/issues/101#issuecomment-75665292","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/101","id":75665292,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T23:55:22Z","updated_at":"2015-02-23T23:55:22Z","body":"\n\n-----\nOriginal comment by `lowerlo...@gmail.com` on 16 Nov 2009 at 3:36\n* Changed state: **Accepted**\n* Added labels: **Priority-High**"}}