{"action":"created","issue":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1502","labels_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1502/labels{/name}","comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1502/comments","events_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1502/events","html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1502","id":56354192,"number":1502,"title":"Fix Unaware in Doubles and refactor stat ignoring abilities","user":{"login":"Joimer","id":3244216,"avatar_url":"https://avatars.githubusercontent.com/u/3244216?v=3","gravatar_id":"","url":"https://api.github.com/users/Joimer","html_url":"https://github.com/Joimer","followers_url":"https://api.github.com/users/Joimer/followers","following_url":"https://api.github.com/users/Joimer/following{/other_user}","gists_url":"https://api.github.com/users/Joimer/gists{/gist_id}","starred_url":"https://api.github.com/users/Joimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joimer/subscriptions","organizations_url":"https://api.github.com/users/Joimer/orgs","repos_url":"https://api.github.com/users/Joimer/repos","events_url":"https://api.github.com/users/Joimer/events{/privacy}","received_events_url":"https://api.github.com/users/Joimer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-03T09:38:24Z","updated_at":"2015-02-03T10:44:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/1502","html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1502","diff_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1502.diff","patch_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1502.patch"},"body":"Unaware currently doesn't work because the ModifyMove event is fired on the move before each target is caculated in doubles and triples.\r\nThis means that the ModifyMove event should be fired for each target and the move not modified unless it fits the attacker-target.\r\nIt's easier and less expensive to use an ability property to check on attacker/target than to fire events.\r\nThis fixes Unaware in doubles/triples."},"comment":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/comments/72629807","html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1502#issuecomment-72629807","issue_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1502","id":72629807,"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},"created_at":"2015-02-03T10:44:23Z","updated_at":"2015-02-03T10:44:23Z","body":"It's the same way it's handled everywhere: `pokemon.ignore['Ability'] === true`\r\n\r\nWhen it comes to defending attacks, then `pokemon.ignore['Ability']` since that checks both Gastro Acid and Mold Breaker."}}