Commit Graph

3416 Commits

Author SHA1 Message Date
Guangcong Luo
7ab332673b Don't notify for own messages
For the most part, this isn't really a big deal: If you send a message,
you usually have the window open, so you can see that you've sent a
message.

This is mainly for things like if you send a message and switch rooms
before it appears in the roomlog, but it's really mainly for things
like /hotpatch where you don't need to be notified about all the
rooms that notify you.
2016-09-13 18:36:50 -04:00
Guangcong Luo
05914194c6 Support multiline PM messages 2016-09-13 18:36:04 -04:00
Guangcong Luo
9f361be5df Teambuilder: Support searching by middle word
Previously, you could search by the first or last word in a three-word
phrase, but not the middle so "High" and "Kick" but not "Jump" in
"High Jump Kick". This lets you search by all three.
2016-09-12 17:14:10 -07:00
Ridaz
b76912b407 Update Z-Move activation and other move animations (#764) 2016-09-10 15:14:25 -05:00
Guangcong Luo
49dbab6b69 Teambuilder: Improve HP EV recommendation 2016-09-10 16:00:08 -04:00
Guangcong Luo
b3e63242b2 Support |c|USER|/log MESSAGE
The new /log syntax is analogous to /me and /announce

Doing it this way makes it easier to support by bots, and also makes
it not highlight the initiator but still highlight others which is
usually desired.

Closes #760
2016-09-10 15:57:32 -04:00
Guangcong Luo
b931fc2202 Fix crash in MitM detection 2016-09-06 19:42:40 -04:00
Guangcong Luo
7a92804a74 Teambuilder: Fix Endeavor IV/EVed as a physical move 2016-09-06 19:42:06 -04:00
Guangcong Luo
3f13d6e99d Fix comma dangle in graphics.js 2016-09-06 19:41:13 -04:00
Guangcong Luo
434322fecc Sync learnsets 2016-09-05 06:46:30 -04:00
Guangcong Luo
eec3263538 Improve assertion MitM detection 2016-09-05 06:46:30 -04:00
Guangcong Luo
e3b908e5f2 Add message length limits
We already limit message length in various ways, but this helps save
some bandwidth by doing a basic check before anything is sent.

The limit is very high (80 KB) mostly so certain long commands like
/eval can go through.
2016-09-05 06:46:30 -04:00
Guangcong Luo
fb19307927 Update SockJS to 1.1.1
Note that it's had to be modified slightly for compatibility for our
version of nwjs.
2016-09-05 06:46:30 -04:00
Guangcong Luo
98403d0c71 Update PSdex link 2016-09-05 06:46:30 -04:00
Ridaz
37681a72aa Add Flame Charge & Inferno Overdrive animations (#763) 2016-09-02 16:15:09 -05:00
The Immortal
7f2f4edc18 Add RU current COIL 2016-08-30 15:40:25 +04:00
The Immortal
7c2afee1f6 Update ladder COIL 2016-08-27 16:57:08 +04:00
Ridaz
b4536dc69d Update move animations, round 13 (#762) 2016-08-26 09:42:36 -05:00
Guangcong Luo
3d92d0fcaf Sync learnsets 2016-08-20 23:47:23 -04:00
Guangcong Luo
8c87d995a2 Fix FAQ redirect 2016-08-20 23:47:10 -04:00
Guangcong Luo
10b433f534 Teambuilder: Fix layout when adding to team 2016-08-20 23:46:22 -04:00
Guangcong Luo
25b17c4e69 Gracefully handle certain MitMs
Certain internet connections inject HTML into the login process.
This commit tries to recover from that, and gives a more relevant
error message if it can't.
2016-08-20 23:44:50 -04:00
Guangcong Luo
86c7373353 Fix bug when joining room by alias
Rooms would auto-close when you tried to join a room by its alias.
2016-08-20 23:44:04 -04:00
The Immortal
bc6d39c225 Remove AAA & Monotype COIL 2016-08-20 06:01:53 +04:00
Marty-D
f8cf876f5c Prepare for new forme change animations 2016-08-17 22:36:18 -04:00
urkerab
8fa0a7b0d5 Allow status to be cured silently (#759) 2016-08-16 18:01:05 -04:00
urkerab
773f3b3fea Allow the battle engine to manually cure status after -cureteam (#757) 2016-08-15 16:45:31 -05:00
Jay Fault
95adc8935f Export teams from folder (#756) 2016-08-13 22:15:00 -05:00
Ridaz
ef5e6999ed Fix Schooling ability animation 2016-08-11 10:03:45 +01:00
Ridaz
c183827423 Update the defender on some animations 2016-08-11 02:15:35 +01:00
Konrad Borowski
601b2f52d8 Run mouseup event only once for tournaments draggable box (#754) 2016-08-10 20:02:33 -05:00
Ridaz
15083b53ce Update move animations, round 12.8 (#753) 2016-08-10 12:44:13 -05:00
Konrad Borowski
49fc9933a9 Fix chat memory leaks (#752) 2016-08-10 12:37:45 -05:00
Ridaz
bba7941c68 Update move animations, round 12.5 2016-08-10 14:27:04 +01:00
The Immortal
4de3e3b7ec Add AAA COIL 2016-08-09 05:31:59 +04:00
Ivo Julca
51f758fb1e Refactor client-battle.js for better code quality 2016-08-07 18:54:26 -05:00
Guangcong Luo
4c925973b6 Remove /help join
(It's being moved to the server.)
2016-08-06 20:15:47 -05:00
Guangcong Luo
fda185cdcf Fix weird markup in alt form menu
The HTML/CSS behind the form for choosing Pokémon forms was getting
relatively unmaintainable, mainly because of an early hack for the
item icon location. The item icon's been move and the HTML is
easier to deal with now.
2016-08-06 18:59:40 -05:00
Guangcong Luo
7d8c72beca Support /j as alias of /join 2016-08-06 18:14:00 -05:00
Guangcong Luo
f14b6c0382 Show help message for /join 2016-08-06 18:14:00 -05:00
Guangcong Luo
05c89b54d7 Sync learnsets 2016-08-06 18:32:25 -04:00
Guangcong Luo
0c22a0d6b1 Support URLs in Join Other Room button
Now you can use URLs like http://play.pokemonshowdown.com/help
in addition to roomids like help in the Join Other Rooms button.
2016-08-06 18:32:25 -04:00
Guangcong Luo
7d524d04ad Add <<faq>> shortcut link 2016-08-06 18:32:25 -04:00
Quinton Lee
db0ab695b9 Tournaments: reduce the number of battle messages (#726)
Instead of adding new messages for |battleend|, replace the text in
|battlestart| messages with battle results
2016-08-06 16:51:36 -05:00
The Immortal
ca18107335 Add Monotype COIL 2016-08-05 16:58:05 +04:00
Ivo Julca
40e296a219 Deps: Sync ESLint version and settings with server 2016-08-05 00:50:20 -05:00
Ridaz
a432a220ab Animate the defender on some moves 2016-08-03 20:59:56 +01:00
Ridaz
c02cd86967 Update Me First move animation 2016-08-03 20:42:07 +01:00
Guangcong Luo
5e3a3377f0 Possible workarounds for Chrome CORS issue
A version of Chrome suddenly started complaining about PS's
cross-origin communication system. These changes seem to mostly
solve the issue.

This is kind of voodoo programming, but oh well. You do what you have
to to work around obscure client bugs.
2016-08-02 03:43:29 -04:00
Guangcong Luo
758d53f2b6 Update alt text for mobile layout logo 2016-08-02 03:41:05 -04:00