{"action":"created","issue":{"url":"https://api.github.com/repos/stephenfournier/Dota-2-Building-Helper/issues/69","labels_url":"https://api.github.com/repos/stephenfournier/Dota-2-Building-Helper/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/stephenfournier/Dota-2-Building-Helper/issues/69/comments","events_url":"https://api.github.com/repos/stephenfournier/Dota-2-Building-Helper/issues/69/events","html_url":"https://github.com/stephenfournier/Dota-2-Building-Helper/issues/69","id":104537472,"number":69,"title":"AttackCapability of constructing/upgrading Buildings","user":{"login":"KirmesBude","id":8339817,"avatar_url":"https://avatars.githubusercontent.com/u/8339817?v=3","gravatar_id":"","url":"https://api.github.com/users/KirmesBude","html_url":"https://github.com/KirmesBude","followers_url":"https://api.github.com/users/KirmesBude/followers","following_url":"https://api.github.com/users/KirmesBude/following{/other_user}","gists_url":"https://api.github.com/users/KirmesBude/gists{/gist_id}","starred_url":"https://api.github.com/users/KirmesBude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KirmesBude/subscriptions","organizations_url":"https://api.github.com/users/KirmesBude/orgs","repos_url":"https://api.github.com/users/KirmesBude/repos","events_url":"https://api.github.com/users/KirmesBude/events{/privacy}","received_events_url":"https://api.github.com/users/KirmesBude/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-02T17:52:24Z","updated_at":"2015-09-02T18:00:01Z","closed_at":null,"body":"Buildings can already attack when they are still in construction.\r\nOld Buildings can still attack while upgrading\r\n\r\n**Repro Steps:**\r\nObvious"},"comment":{"url":"https://api.github.com/repos/stephenfournier/Dota-2-Building-Helper/issues/comments/137191905","html_url":"https://github.com/stephenfournier/Dota-2-Building-Helper/issues/69#issuecomment-137191905","issue_url":"https://api.github.com/repos/stephenfournier/Dota-2-Building-Helper/issues/69","id":137191905,"user":{"login":"MNoya","id":401423,"avatar_url":"https://avatars.githubusercontent.com/u/401423?v=3","gravatar_id":"","url":"https://api.github.com/users/MNoya","html_url":"https://github.com/MNoya","followers_url":"https://api.github.com/users/MNoya/followers","following_url":"https://api.github.com/users/MNoya/following{/other_user}","gists_url":"https://api.github.com/users/MNoya/gists{/gist_id}","starred_url":"https://api.github.com/users/MNoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MNoya/subscriptions","organizations_url":"https://api.github.com/users/MNoya/orgs","repos_url":"https://api.github.com/users/MNoya/repos","events_url":"https://api.github.com/users/MNoya/events{/privacy}","received_events_url":"https://api.github.com/users/MNoya/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T18:00:01Z","updated_at":"2015-09-02T18:00:01Z","body":"Fix in builder.lua:\r\n\r\nIn `OnConstructionStarted`:\r\n\r\n```lua\r\nunit.original_attack = unit:GetAttackCapability()\r\n`unit:SetAttackCapability(DOTA_UNIT_CAP_NO_ATTACK)`\r\n```\r\n\r\nIn `OnConstructionCompleted`:\r\n\r\n```lua\r\n`unit:SetAttackCapability(unit.original_attack)`\r\n```"}}