{"action":"created","issue":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/316","labels_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/316/comments","events_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/316/events","html_url":"https://github.com/Zarel/Pokemon-Showdown-Client/issues/316","id":54676409,"number":316,"title":"Cancel doesn't work if the only battle request is the own","user":{"login":"Slayer95","id":4925744,"avatar_url":"https://avatars.githubusercontent.com/u/4925744?v=3","gravatar_id":"","url":"https://api.github.com/users/Slayer95","html_url":"https://github.com/Slayer95","followers_url":"https://api.github.com/users/Slayer95/followers","following_url":"https://api.github.com/users/Slayer95/following{/other_user}","gists_url":"https://api.github.com/users/Slayer95/gists{/gist_id}","starred_url":"https://api.github.com/users/Slayer95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slayer95/subscriptions","organizations_url":"https://api.github.com/users/Slayer95/orgs","repos_url":"https://api.github.com/users/Slayer95/repos","events_url":"https://api.github.com/users/Slayer95/events{/privacy}","received_events_url":"https://api.github.com/users/Slayer95/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/labels/enhancement","name":"enhancement","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-17T21:40:18Z","updated_at":"2015-01-19T08:05:47Z","closed_at":null,"body":"There are some cases when it's evident that the battle has only a single request pending. Under such circumstances, the battle will proceed as soon as the player makes their choice, and any subsequent <code>/undo</code> messages will be invalid. As the option to cancel doesn't <i>really</i> exist then, it follows that (at least) for those circumstances, the cancel button should either be\r\n- Removed or disabled\r\n- Reworked (maybe implement a safety delay to choices so that the player may cancel their decision until the delay finishes and the decision is sent).\r\n\r\nWhich one?"},"comment":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/comments/70457752","html_url":"https://github.com/Zarel/Pokemon-Showdown-Client/issues/316#issuecomment-70457752","issue_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/316","id":70457752,"user":{"login":"Slayer95","id":4925744,"avatar_url":"https://avatars.githubusercontent.com/u/4925744?v=3","gravatar_id":"","url":"https://api.github.com/users/Slayer95","html_url":"https://github.com/Slayer95","followers_url":"https://api.github.com/users/Slayer95/followers","following_url":"https://api.github.com/users/Slayer95/following{/other_user}","gists_url":"https://api.github.com/users/Slayer95/gists{/gist_id}","starred_url":"https://api.github.com/users/Slayer95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slayer95/subscriptions","organizations_url":"https://api.github.com/users/Slayer95/orgs","repos_url":"https://api.github.com/users/Slayer95/repos","events_url":"https://api.github.com/users/Slayer95/events{/privacy}","received_events_url":"https://api.github.com/users/Slayer95/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T08:05:47Z","updated_at":"2015-01-19T08:05:47Z","body":"That's probably a good approach for the cases when you could cancel if you clicked fast enough.\r\n\r\nWhat this issue is about is for cases when you could never actually cancel, i.e. there was no cancelable period at all. e.g.: if you are prompted to switch on U-Turn usage, or if your Pokémon faints and no other player has to switch another Pokémon in."}}