Commit Graph

3902 Commits

Author SHA1 Message Date
Guangcong Luo
b557eafefb Google login: Log out if wrong account 2017-09-13 16:35:41 -04:00
Guangcong Luo
248f4a0887 Support Google login
This doesn't support setting accounts up for Google login: that still
has to be manually done via the database by setting the email field to
`username@gmail.com@`, where the second `@` denotes that it's using
Gmail login.

If the email field does end in `@`, `getassertion` will note this by
sending `;;@gmail`, to convey that the server is expecting a Google
login token rather than a password.

Upon receiving `;;@gmail`, the client will replace the password box will
with a Google login button, and then send the resulting Google login
token to the server in the `password` field. The server will validate
the "password" using the Google server libraries, and otherwise handle
the login as normal.

Note that Google login requires various features that a paranoid person
might disable; most notably 3rd-party cookies.

Fixes Zarel/Pokemon-Showdown#3394
2017-09-13 12:36:41 -04:00
Marty-D
92f81037ca Fix more bugs in 79a569c746 2017-09-13 10:07:52 -04:00
Marty-D
095d29ad43 Fix bugs in 79a569c746 2017-09-12 23:43:55 -04:00
Guangcong Luo
bcc5d310fe Prioritize 'Substitute' in a search for 'sub' 2017-09-12 22:48:34 -04:00
Guangcong Luo
09ec9ef423 Support >6 pokemon in Team Preview 2017-09-12 22:48:34 -04:00
Ridaz
7e6ab9b099 Fix Oceanic Operetta move animation 2017-09-10 09:46:00 +01:00
MacChaeger
79a569c746 Tooltips: Show BP modifiers from STAB and field effects (#998) 2017-09-09 20:52:53 -04:00
Guangcong Luo
022e1e77ea Support >6 Pokemon in Team Preview 2017-09-09 20:11:32 -04:00
The Immortal
b10190dc43 Tooltip: Show type for Revelation Dance 2017-09-09 04:05:13 +04:00
urkerab
13b11241ec Prevent base move tracking from disabling Z move animation (#1004) 2017-09-07 20:57:25 -04:00
urkerab
edf24ac6da Reveal own Ability in Gen 7 (#1003) 2017-09-06 23:22:45 -04:00
urkerab
269383fecf Fix typo in PR #992 (#1002) 2017-09-06 16:45:07 -04:00
urkerab
034995e0ab Leppa Berry only restores 10 PP (#1001) 2017-09-06 16:09:27 -04:00
Guangcong Luo
30da43cabf Fix crash in Chrome Mobile
`window.Notification` exists in Chrome Mobile but throws if you try to
use it... what is this ridiculousness??????
2017-09-06 15:45:54 -04:00
Guangcong Luo
b3506abcf3 Fix crash when something happens to fainted Pokemon 2017-09-06 15:44:11 -04:00
Guangcong Luo
4688121d15 Fix style error 2017-09-06 06:49:52 -04:00
Guangcong Luo
55883768de Track PP changes for Leppa Berry
Bit of a hack, but I can't think of a better way to do this.
2017-09-06 06:41:02 -04:00
Guangcong Luo
917e26b828 Fix NaN level bug in #995 2017-09-06 06:40:23 -04:00
panpawn
2d8abd2824 Room list: Add "PSPL Winner" section (#993) 2017-09-06 03:36:29 -04:00
QuiteQuiet
76248e559d Match shiny as their non-shiny Team Preview counterpart (#996) 2017-09-06 02:35:39 -04:00
MacChaeger
42f5ca0748 Tooltips: Add more BP and stat modifiers (#992) 2017-09-05 21:31:23 -04:00
urkerab
3d9fb89cd9 Fix typo in PR #984 (#997) 2017-09-05 08:54:57 -04:00
Konrad Borowski
8d21bef5ae Handle level changes in detailschange (#995) 2017-09-03 04:47:15 -04:00
Ridaz
49a6d8dcef Add Acid Downpour move animation
...And make the code more consistent
2017-09-02 18:44:58 +01:00
panpawn
4bcb264878 Locked symbol: Use unicode code point (#994) 2017-09-01 19:18:25 -04:00
MacChaeger
b8d183d92f Tooltips: Remove misplaced Flare Boost modifier (#991) 2017-08-30 08:46:48 -04:00
Guangcong Luo
051f16287e Sync data 2017-08-24 20:16:25 -04:00
Guangcong Luo
82e22b1d9a Support Gen 7 models in teambuilder 2017-08-24 20:15:30 -04:00
urkerab
37e25205f3 Remove outdated .zerohp flag (#985) 2017-08-24 13:44:04 -07:00
Guangcong Luo
4591bad53e Add protocol support for manual battle HTML
Closes #968
2017-08-24 13:36:06 -07:00
urkerab
3552b5b1a9 Track base move for Z moves that have one (#984) 2017-08-19 13:08:22 -07:00
Ridaz
b5f8e261be Add gear based move animations (#983) 2017-08-17 12:51:53 -07:00
MacChaeger
2e36fed6aa Tooltips: Strong Winds boost Weather Ball's power (#982) 2017-08-16 15:10:27 -07:00
asgdf
62232e7362 Tooltips: fix wrong base power being displayed for Extreme Evoboost (#980) 2017-08-07 20:37:38 -05:00
Konrad Borowski
ccf4621c7d Use different Pokemon in tests to avoid failures
I would prefer if the test would still test if a mega gets an item,
which is why Charizard-Mega-Y was picked. It's unlikely to be banned,
but is powerful enough to stay in OU.

A safer choice would be an Arceus, but there is no code yet that
automatically gives a correct item to formes (may be worth fixing).
2017-08-07 22:53:54 +02:00
asgdf
6d41edf277 Tooltips: show Water Shuriken boost for Ash-Greninja (#979) 2017-08-06 02:53:42 -05:00
urkerab
c5bd361adb Set the item when a Z move is used (#978) 2017-08-04 23:52:31 -05:00
Ridaz
60705393cb Add All-Out Pummeling move animation
And update some other moves
2017-08-03 19:11:55 +01:00
Guangcong Luo
d115956a30 Fix support for total-time tracking 2017-08-02 20:45:24 -04:00
Guangcong Luo
5737b81996 Redesign pokemon sidebar
Now Pokemon are only faded out if they haven't necessarily been brought
into the battle.
2017-08-02 20:44:47 -04:00
asgdf
8eb42e83b3 Allow export of the 'uncategorized' format folder (#976) 2017-08-02 20:29:18 -04:00
Ivo Julca
ae57df76da Deps: Update Caja to latest master for HSL color notation support
Also we are still floating the patch from 18bf9fdb4
2017-08-01 14:55:51 -05:00
Ridaz
b3862d0a35 Add refresh button to Ladders tab (#977) 2017-07-30 19:39:33 -04:00
Marty-D
3c10ba7115 Fix typo in previous commits 2017-07-28 23:07:07 -04:00
Guangcong Luo
9b9497454c Sync learnsets 2017-07-28 23:09:38 -04:00
Guangcong Luo
f38a4f7fea Support total/turn timer
The battle UI can now display a total timer and a turn timer separately.
2017-07-28 23:09:11 -04:00
Guangcong Luo
ba0dad5197 Hardcore mode: Instant-update Cancel button 2017-07-28 23:09:11 -04:00
Guangcong Luo
86133cca7a Hardcore mode: Add support for tooltips 2017-07-28 23:09:11 -04:00
Guangcong Luo
f961b2c18d Implement Hardcore mode
This new mode is useful for VGC practice, and hides quality-of-life
features not available in-game.
2017-07-28 23:09:10 -04:00