{"action":"created","issue":{"url":"https://api.github.com/repos/olistic/warriorjs/issues/103","repository_url":"https://api.github.com/repos/olistic/warriorjs","labels_url":"https://api.github.com/repos/olistic/warriorjs/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/olistic/warriorjs/issues/103/comments","events_url":"https://api.github.com/repos/olistic/warriorjs/issues/103/events","html_url":"https://github.com/olistic/warriorjs/issues/103","id":323335813,"number":103,"title":"Add documentation for space.getUnit?","user":{"login":"mattdiamond","id":674060,"avatar_url":"https://avatars2.githubusercontent.com/u/674060?v=4","gravatar_id":"","url":"https://api.github.com/users/mattdiamond","html_url":"https://github.com/mattdiamond","followers_url":"https://api.github.com/users/mattdiamond/followers","following_url":"https://api.github.com/users/mattdiamond/following{/other_user}","gists_url":"https://api.github.com/users/mattdiamond/gists{/gist_id}","starred_url":"https://api.github.com/users/mattdiamond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattdiamond/subscriptions","organizations_url":"https://api.github.com/users/mattdiamond/orgs","repos_url":"https://api.github.com/users/mattdiamond/repos","events_url":"https://api.github.com/users/mattdiamond/events{/privacy}","received_events_url":"https://api.github.com/users/mattdiamond/received_events","type":"User","site_admin":false},"labels":[{"id":922010764,"url":"https://api.github.com/repos/olistic/warriorjs/labels/area:%20player%20api","name":"area: player api","color":"FFFCE3","default":false},{"id":922001826,"url":"https://api.github.com/repos/olistic/warriorjs/labels/pkg:%20core","name":"pkg: core","color":"B2DAB3","default":false},{"id":932877344,"url":"https://api.github.com/repos/olistic/warriorjs/labels/type:%20discussion","name":"type: discussion","color":"C9F7FF","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-15T18:39:05Z","updated_at":"2018-05-15T21:36:13Z","closed_at":null,"author_association":"NONE","body":"Not sure if we're supposed to be able to use this function, but the docs for the Space API don't indicate that you can inspect the unit on a given space by calling `space.getUnit()`. Is there a reason that was left out, or was that just an oversight?"},"comment":{"url":"https://api.github.com/repos/olistic/warriorjs/issues/comments/389321404","html_url":"https://github.com/olistic/warriorjs/issues/103#issuecomment-389321404","issue_url":"https://api.github.com/repos/olistic/warriorjs/issues/103","id":389321404,"user":{"login":"mattdiamond","id":674060,"avatar_url":"https://avatars2.githubusercontent.com/u/674060?v=4","gravatar_id":"","url":"https://api.github.com/users/mattdiamond","html_url":"https://github.com/mattdiamond","followers_url":"https://api.github.com/users/mattdiamond/followers","following_url":"https://api.github.com/users/mattdiamond/following{/other_user}","gists_url":"https://api.github.com/users/mattdiamond/gists{/gist_id}","starred_url":"https://api.github.com/users/mattdiamond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattdiamond/subscriptions","organizations_url":"https://api.github.com/users/mattdiamond/orgs","repos_url":"https://api.github.com/users/mattdiamond/repos","events_url":"https://api.github.com/users/mattdiamond/events{/privacy}","received_events_url":"https://api.github.com/users/mattdiamond/received_events","type":"User","site_admin":false},"created_at":"2018-05-15T21:36:13Z","updated_at":"2018-05-15T21:36:13Z","author_association":"NONE","body":"Sure. On the topic of \"what would make my life easier\", my difficulty on the final level is the task of prioritizing which enemy to attack first. The hero has a melee opponent a few spaces ahead and a ranged opponent a few spaces behind. I can obviously detect on the 2nd turn that I took damage, but the hero has no way of knowing if the ranged attack is coming from the enemy ahead of him or behind him (or potentially both). That's what I was using `getUnit` to solve (along with `unit.abilities.has`), so I'll have to come up with an alternative strategy for solving this problem."}}
{"actor":{"display_login":"mattdiamond"}}