Commit Graph

23714 Commits

Author SHA1 Message Date
The Immortal
fa3c656c33 Add new events
Satoshi's Pikachu, Iris's Axew, Dento's Pansage, Prof. Okido's Rotom
2013-08-10 21:45:39 +04:00
Joimer
2190c8d6ec Gen 2: Fix bug on critical hit with debuff
If you have an attack debuff and get critical hit, turn crashes.
2013-08-10 18:10:58 +02:00
Joimer
e96630ed4a Gen 2: Correct Hidden Power Base Power calculation
Brackets were missing.
2013-08-10 17:22:19 +02:00
Joim
7d2a8702a1 Gen 2: Set format to debug mode
Set the format to debug mode for easier test when a user reports a problem.
2013-08-10 15:11:37 +02:00
小太
9c10f086dc Use the format id 2013-08-10 18:58:39 +10:00
小太
0200a7c91e Add a little bit more information to the creation message 2013-08-10 18:52:48 +10:00
小太
f5d531ac09 Proper check for a global 2013-08-10 18:47:36 +10:00
小太
34d9c6d794 Automatically send tournament information on joining a room 2013-08-10 18:42:39 +10:00
小太
851c2a97a2 Make the frontend more dependant on a room.
Optimise getUpdate() so it only sends it to the required user.
Make the generator case insensitive.
2013-08-10 18:34:01 +10:00
小太
5d59e68e2b Add in-progress state to bracket, and update it to handle new getBracketData() output.
Also add message for disqualified users
2013-08-10 17:38:50 +10:00
小太
41d9027a67 Merge branch 'tournaments' into tournaments-frontend 2013-08-10 17:36:12 +10:00
小太
aae9b96086 Change getBracketData() output specification to reduce redundancy 2013-08-10 17:35:45 +10:00
小太
73a6b896e7 Validate teams for tournaments 2013-08-10 17:04:45 +10:00
V4Victini
ada48c1c0b Move healing to onHit from onModifyMove 2013-08-10 01:12:10 -04:00
Guangcong Luo
b8d52b1130 Merge pull request #290 from Slayer95/patch-1
Support using room title for /redir
2013-08-09 16:41:40 -07:00
V4Victini
4b64be082a Proprly implement Swallow's healing as well 2013-08-09 17:59:30 -04:00
Joimer
948ea295e7 Gen 2: Add format and ladder 2013-08-09 22:06:00 +02:00
Joimer
64d783aea0 Gen 2: Implement Hidden Power
Typechart is necessary for the types IVs for specific hidden powers.
2013-08-09 22:03:02 +02:00
Joimer
a6b1bff6fb Gen 2: Add base files
Formats for its own validateSet, statuses, learnsets (from Veekun),
items, move changes, formats data for tiering, ability none,
and battle scripts.
2013-08-09 22:02:04 +02:00
小太
ea5646af16 Fix minor typo in forceEnd() 2013-08-10 00:21:02 +10:00
Joimer
be2d3686f7 Fix Storm Drain accuracy check for Water-type moves
Water-type moves should not fail against Storm Draim Pokémon.

Test, Gastrodon + Qwilfish, turn 2 switching the first to Escavalier:
Storm drain is making Hydro Pump accuracy true
Storm drain is making Hydro Pump accuracy true
Storm drain is making Hydro Pump accuracy true
Storm drain is making Hydro Pump accuracy true
Accuracy for Recover: true
Accuracy for Recover: true
Accuracy for Hydro Pump: 80
Accuracy for Hydro Pump: 80
2013-08-09 11:07:12 +02:00
Joimer
fe0e94fd87 Fix Flash Fire accuracy check with Fire-type moves
No Fire-type move should fail against Flash Fire Pokémon.

Test on two turns:
Flash fire is making Will-O-Wisp accuracy to true.
Flash fire is making Will-O-Wisp accuracy to true.
Accuracy for Earth Power: 100
Accuracy for Earth Power: 100
Accuracy for Will-O-Wisp: 75
Accuracy for Will-O-Wisp: 75
Accuracy for Substitute: true
Accuracy for Substitute: true
2013-08-09 11:00:55 +02:00
小太
8856968e7c Add hotpatching support and also return a message on access denied 2013-08-09 18:39:50 +10:00
小太
606c9a9b54 Show if the tournament is started or not when listing tournaments 2013-08-09 18:25:48 +10:00
小太
21851ef283 Fix bug when listing tournaments 2013-08-09 18:24:56 +10:00
小太
5afc801f96 Make the tournament delete itself when ended 2013-08-09 18:21:44 +10:00
小太
27556651cb Add es6-shim to package.json 2013-08-09 17:58:04 +10:00
小太
18c52f7b40 Load tournaments/frontend.js from app.js 2013-08-09 17:54:31 +10:00
小太
591ecf5752 Add the actual commands 2013-08-09 17:54:15 +10:00
小太
7102c2e37d Fix some bugs 2013-08-09 17:54:01 +10:00
小太
2ea7dab5b0 Rename a few functions 2013-08-09 17:17:55 +10:00
Slayer95
aa6ff5b32b Support using room title for /redir 2013-08-09 01:50:25 -05:00
Joimer
b9421651eb Gen 1: Implement partial trapping 0 pp bug
When a partial trapping move is executing its 0 pp sequence, if
the opponent switches the pps get rolled back to max.
2013-08-08 21:30:42 +02:00
Joimer
1275006795 Make redir not redir to the same room
It's redundant.
2013-08-08 20:59:32 +02:00
Joim
7b2355a2d1 Move Doubles from othermetas command to tiers command
Since Doubles is going to be official from gen 6 on and it's 
on adaptation period, show it on tiers now so users get 
used to it.
2013-08-08 12:26:08 +02:00
Joimer
762b343977 Crash hotpatch gracefully and inform of the exact error
If a hotpatch fails, it now fails gracefully and informs of the
error stack trace.
2013-08-08 10:12:42 +02:00
Joim
55f9f99f81 Fix styling in last commit 2013-08-08 10:03:34 +02:00
Joim
1851f779ca Update smogdex command: add option to link to doubles formats analyses
Add a third optional parameter to link to a vgc2012, vgc2013, 
or doubles analysis. It only works for gen 5 onwards. If you 
intentionally don't set generation, it will default to 
latest generation and check the parameter for doubles.
2013-08-08 09:54:05 +02:00
The Immortal
5c31a1cb6a Unban Darkrai in STABmons 2013-08-07 08:46:31 -07:00
The Immortal
d7a4e3666f GP 1/2 2013-08-07 08:44:35 -07:00
Joim
eff5371248 Fix Perish Song bug in Doubles
In Doubles, there's the possibility that battle.sides[i].active[j] 
does not exist, thus causing a crash. Add a check for that.
A non-existing Pokémon is not counted for result.
If there's no active Pokémon, there's no field Perish Song 
effect whatsoever.
2013-08-07 17:35:05 +02:00
小太
4d1e3c5ea8 Give more information in update 2013-08-08 00:49:59 +10:00
小太
8805b99526 Merge branch 'tournaments' into tournaments-frontend 2013-08-08 00:46:40 +10:00
小太
07afccc687 Add name property to generators 2013-08-08 00:46:23 +10:00
小太
c42de874b1 Allow disqualifying users 2013-08-08 00:41:38 +10:00
小太
c8a8877ae9 Most of the frontend functionality 2013-08-07 23:22:37 +10:00
小太
24279166b3 Core file edits to support frontend 2013-08-07 23:22:07 +10:00
V4Victini
ab2a3b287f Fix weather-dependent healing moves.
These aren't done with a rounded fraction like the other healing moves. They heal the target by an amount equal to it's maxHP modified by either 0xAAC (.667), 0x800 (0.5), or 0x400 (0.25)
2013-08-07 03:51:33 -04:00
Joim
d83e30072f Doubles: Unban Sky Drop
Sky Drop is no longer glitched in BW2 and thus available, so Doubles is unbanning it.
2013-08-07 08:45:33 +02:00
Joim
272b2ae691 Fix redir with target with no target room crashing 2013-08-06 22:02:00 +02:00