{"action":"created","issue":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1889","labels_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1889/labels{/name}","comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1889/comments","events_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1889/events","html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1889","id":77228356,"number":1889,"title":"Battle refactor: New function isGrounded(), bug fixes","user":{"login":"ascriptmaster","id":6027117,"avatar_url":"https://avatars.githubusercontent.com/u/6027117?v=3","gravatar_id":"","url":"https://api.github.com/users/ascriptmaster","html_url":"https://github.com/ascriptmaster","followers_url":"https://api.github.com/users/ascriptmaster/followers","following_url":"https://api.github.com/users/ascriptmaster/following{/other_user}","gists_url":"https://api.github.com/users/ascriptmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/ascriptmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascriptmaster/subscriptions","organizations_url":"https://api.github.com/users/ascriptmaster/orgs","repos_url":"https://api.github.com/users/ascriptmaster/repos","events_url":"https://api.github.com/users/ascriptmaster/events{/privacy}","received_events_url":"https://api.github.com/users/ascriptmaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-05-17T06:11:54Z","updated_at":"2015-05-18T00:36:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/1889","html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1889","diff_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1889.diff","patch_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1889.patch"},"body":"Added BattlePokemon#isGrounded to check for the grounded-ness of a\r\nPokemon. Also BattlePokemon#inSemiInvulnerableState for whether a Pokemon\r\nis in the first turn of a two-turn move that makes them semi-invulnerable.\r\n\r\nFixed Terrain bugs involving Pokemon in a semi-invulnerable state.\r\n\r\nFixed Misty Terrain bug that was causing Rest and the effect of Yawn to\r\nput Pokemon to sleep.\r\n\r\nFixed Misty Terrain bug that was causing Yawn to fail.\r\n\r\nFixed Electric Terrain bug that was causing Yawn to succeed."},"comment":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/comments/102879080","html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1889#issuecomment-102879080","issue_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1889","id":102879080,"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-05-18T00:36:10Z","updated_at":"2015-05-18T00:36:10Z","body":"Because they are a lot of turns. Just call <code>this.timeout(0)</code> at the beginning of the test."}}