Commit Graph

3450 Commits

Author SHA1 Message Date
Marty-D
3140a1e2e2 Fix left-facing Roselia/Roserade minisprites 2016-10-03 21:08:36 -04:00
Marty-D
6019340f5b Support Gen 6 minisprites in battle sidebars 2016-10-03 21:07:38 -04:00
Jay Fault
4b173f4b2c Add 3 second delay after clicking Battle! (#776) 2016-10-03 16:35:21 -07:00
Bär Halberkamp
bce03c4f6e Port /reply to the client (#773) 2016-10-03 13:28:20 -07:00
urkerab
f58656cb1b Mark the Natural Cure ability when it activates (#774) 2016-10-03 13:26:13 -07:00
panpawn
98c76d37d2 README: Add Dex to Navigation section (#769) 2016-10-02 22:19:24 -07:00
Ridaz
b9474765f7 Improve Petal Dance move animation again 2016-09-29 21:31:29 +01:00
Ridaz
8590db256e Improve Petal Dance move animation 2016-09-29 21:06:44 +01:00
Ridaz
617a8d54b5 Update move animations, round 13.5 (#771) 2016-09-29 13:01:06 -07:00
Guangcong Luo
4b10e833a6 Fix indentation in getIcon 2016-09-28 18:36:34 -04:00
Guangcong Luo
c6c8e1c783 Sync learnsets 2016-09-28 18:25:18 -04:00
Guangcong Luo
a3995a1b97 Introduce |error|
|error| replaces the previous |html|<div class="message-error">
with something nicer.
2016-09-28 18:20:17 -04:00
Guangcong Luo
ee970c1f56 Fix getPokemon on duplicate fainted
If, during effect activation, a Pokemon isn't where it's supposed to
be, we search the rest of the player's team for it.

For instance, when Destiny Bond activates, Deoxys has already fainted,
so it's not where we expect it to be. Normally, we search the player's
team for Deoxys, find the Deoxys, and Destiny Bond activates as normal.

The problem comes in formats without Species Clause. We might find the
wrong Deoxys! Normally, this isn't a big problem. For a Pokemon to
match, it has to have the exact same name, so the message displayed is
still "Deoxys took the foe's Blaziken down with it!" and everything
goes on normally.

The problem comes in Doubles formats without Species Clause. Finding
the wrong Deoxys overwrites its slot number, which, if it's an active
Deoxys, puts it in an inconsistent state, causing crashes later on.

This fix changes it so if a Pokemon isn't where it's supposed to be,
we search the rest of the player's team, excluding other active
Pokemon, for it.

This renames the previous isInactive flag in getPokemon to isSwitch,
which more accurately describes how its matching works.
2016-09-28 18:20:03 -04:00
Guangcong Luo
3c03f9331b Teambuilder: Update search aliases
Add:

zong -> Bronzong
zard -> Charizard
chomp -> Garchomp
2016-09-28 18:09:13 -04:00
Guangcong Luo
0c36029265 Update Appeals redirect 2016-09-28 18:08:43 -04:00
urkerab
c4c0c16239 Mark Abilities correctly for Trace and Role Play (#770) 2016-09-27 19:53:24 -04:00
Marty-D
87a410d3b5 Add Kerfluffle minisprite 2016-09-25 13:58:09 -04:00
The Immortal
16a04dcd1b Add AAA COIL 2016-09-25 04:19:29 +04:00
Marty-D
63ea611b24 Add Receiver message and Instruct tag 2016-09-23 17:45:54 -04:00
The Immortal
ff12202e3d Update RU COIL 2016-09-23 12:01:49 +04:00
The Immortal
df3bcf2af3 Add Instruct message 2016-09-20 19:19:05 +04:00
Ivo Julca
a65fb9fcee Fix XSS in tournament errors 2016-09-17 23:48:59 -05:00
The Immortal
175718cbed Teambuilder: Update tiers
Add BH, remove FU.
2016-09-17 17:40:24 +04:00
Ridaz
ef1d4e3dec Update Flame Wheel move animation
Now it uses the Flame Charge animation
2016-09-16 12:47:58 +01:00
Ridaz
ba2509c068 Improve Shadow Ball move animation 2016-09-16 06:54:11 +01:00
Ridaz
c378eb8d32 Fix Pulverising Pancake move animation 2016-09-16 00:24:04 +01:00
Ridaz
b8b2943c38 Add Pulverising Pancake move animation
And make Retaliate and Submission animate like Close Combat
2016-09-16 00:13:21 +01:00
Ridaz
4ef3f686aa Improve Sludge Wave move animation
The defender now animates when hit by it
2016-09-15 21:00:44 +01:00
Ridaz
7931bde4b7 Update Hex move animation 2016-09-15 18:52:15 +01:00
Ridaz
70631e8ffd Update Fury Swipes move animation
And fix Claw Attack and Solar Blade move animations
2016-09-15 18:02:02 +01:00
Ridaz
867aa2ccd9 Improve Shadow Ball move animation 2016-09-15 17:25:58 +01:00
Ridaz
ec0b87a007 Update Tri-Attack move animation (#765) 2016-09-14 17:49:38 +01:00
Guangcong Luo
12229fe287 Sync learnsets 2016-09-14 06:32:37 -04:00
Guangcong Luo
37b0905f6c Teambuilder: No Spe EVs if you have Trick Room 2016-09-14 06:32:09 -04:00
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