Commit Graph

3930 Commits

Author SHA1 Message Date
Guangcong Luo
d8e0986f8a Improve Species Clause detection 2017-10-11 19:04:56 -05:00
Guangcong Luo
ef9b1cb35a Fix bug in getPokemon Illusion handling 2017-10-11 19:04:37 -05:00
Guangcong Luo
efadb970e9 Remove unused properties of Pokemon object
A lot of these properties were planned to be used five years ago, but
it just never happened...

As a side effect, Chrome's Inspector should now be a lot nicer to use.
2017-10-11 19:02:56 -05:00
Guangcong Luo
289aa0cdb1 Fix Illusion tracking for residual damage faint
This handles the remaining case for Illusion tracking.

If a Pokemon fainted from residual damage retroactively turns out to
be an Illusion, the client will now correctly mark the Zoroark as
fainted.

If there is no Zoroark (because Hackmons), the client will now mark
a random unfainted Pokemon as fainted. This guess may be wrong, but
will keep the fainted Pokemon count correct, and will eventually be
correct as incorrect guesses are switched in and reguessed.
2017-10-11 01:29:43 -05:00
Guangcong Luo
5cd7e0040c Fix Illusion tracking for move damage
Now, whenever an Illusion clears, the previously illusioned Pokemon
has its HP and status set to "???"

In addition to being generally more accurate, this fixes a bug where
the team tracker would display the Illusioned Pokemon as fainted when
it's actually still alive.
2017-10-11 00:51:01 -05:00
Guangcong Luo
93cd0025ea Fix various bugs in getPokemon 2017-10-11 00:37:09 -05:00
Guangcong Luo
5e3652d7fb Team icons: Fix mismatched formes matching
Closes Zarel/Pokemon-Showdown#3982
2017-10-11 00:30:27 -05:00
Guangcong Luo
88348b5e0b Support dragging replay files into client 2017-10-11 00:07:44 -05:00
Guangcong Luo
c8a99436bb Improve replay server error messages 2017-10-10 23:06:54 -04:00
Guangcong Luo
01466f463f Support HP type and ball in packedTeam format 2017-10-10 23:06:13 -04:00
Guangcong Luo
6f841a70a3 Fix crash in Google login verification 2017-10-10 23:05:42 -04:00
Guangcong Luo
ab657d2511 Include server ID in replay data
This is to help the replay server determine how much to trust the info
uploaded.
2017-10-10 23:04:51 -04:00
Guangcong Luo
71cb660136 Fix compatibility with old replays
Old replays specify Pokemon IDs in terms of `p1:` instead of
`p1a:`
2017-10-10 23:03:56 -04:00
Guangcong Luo
d57221ed14 Fix HP bar issues with low health
Closes #989
2017-10-10 23:03:43 -04:00
Kris Johnson
053b11b524 Update Monotype COIL (#1023)
* Update Monotype COIL

* Update client-ladder.js
2017-10-10 16:46:29 +04:00
Insist
e5a3178597 Credits: Add urkerab to credits (#1022) 2017-10-08 14:39:01 -05:00
urkerab
b05035c3af Dispatch fragment after processing autojoins (#1021) 2017-10-05 16:12:27 -05:00
QuiteQuiet
7b1147739b Team Preview: Don't hardcode team size for Illusion (#1020) 2017-10-04 16:19:27 -05:00
QuiteQuiet
36b409d9d9 Tooltips: Track sleep and toxic turns (#1017) 2017-10-03 19:06:42 -05:00
urkerab
918e0f8904 Don't merge normal move boosts in with the Z boost (#1019) 2017-10-03 12:36:32 -05:00
Spandan Punwatkar
4abafb57ba Teambuilder Hack for Dual Wielding (#1016) 2017-10-02 03:45:36 -05:00
Marty-D
ae8e6affd9 Fix even more bugs in 79a569c746 2017-09-29 13:36:43 -04:00
Hidden50
1ca77fdde1 Fix crash on browser console when typing "/r " (#1014)
`e.setSelectionRange` is a typo, `setSelectionRange` is a property of the textbox element.

Results in `Uncaught TypeError: e.setSelectionRange is not a function` when the user types in ``"/r "``.
2017-09-29 12:14:54 -05:00
The Immortal
1080ee0b58 Update COIL 2017-09-27 23:12:15 +04:00
MacChaeger
aa388b4e63 Tooltips: Fix Twisted Spoon (#1009) 2017-09-19 21:26:14 -04:00
Quinton Lee
bc057989d3 Google login: fix scope option
The user's email is only accessible 'when the user has granted the "profile" and "email" OAuth scopes to the application.'

https://developers.google.com/identity/sign-in/web/backend-auth
2017-09-17 18:45:22 -05:00
MacChaeger
3ca5bac007 Fix tooltips (#1007) 2017-09-16 00:52:20 -04:00
Guangcong Luo
0001483e33 Fix eslint error 2017-09-13 16:41:21 -04:00
urkerab
1daea00fd6 Quickly mute by double-clicking the sound button (#1006) 2017-09-13 16:22:15 -04:00
Guangcong Luo
644d5ccf91 Support Google login (two-factor auth) (#999)
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 16:20:38 -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