Commit Graph

23714 Commits

Author SHA1 Message Date
QxC4eva
d26fe8cb30 pyroarf is aesthetic forme of pyroar 2014-08-26 22:33:46 +10:00
QxC4eva
70e2f93921 frogadier viablemoves now randomBattleMoves 2014-08-26 22:00:46 +10:00
Guangcong Luo
c58c549084 Fix trailing whitespace in formats 2014-08-26 00:48:49 -04:00
Guangcong Luo
8d484e550d Fix logic error in kickInactive 2014-08-26 00:46:08 -04:00
Guangcong Luo
9bd804838f Implement subchannels
This pushes most of the work of dealing with `|split` from the
main (room) process to the socket process.
2014-08-25 23:48:33 -04:00
Guangcong Luo
bf5d23f980 New bypassall permission
Apples to admins, makes it so admins aren't affected by bans.
I'll make it apply to mutes etc later.
2014-08-25 22:31:05 -04:00
Guangcong Luo
c86f5a36a2 Fix crash when both users leave a timed battle 2014-08-25 21:08:09 -04:00
Guangcong Luo
39082d5bbf Switch |split order
`|split` order used to be p1/p2/spectator/replay. It is now
spectator/p1/p2/replay.

Since the spectator version is the default, it makes a lot more
sense to have the default in index 0 (and more importantly
prepares it for an upcoming refactor).
2014-08-25 16:05:46 -04:00
Guangcong Luo
5899ec94b3 Fix crash in tournaments 2014-08-25 13:05:36 -04:00
Guangcong Luo
cff9737680 Merge pull request #1167 from Slayer95/ruleset-modding
Properly load banlist tables for modded formats
2014-08-25 11:20:53 -05:00
Ivo Julca
f57e771e8c Refactor randbats set generators a bit
- Move some variable declarations outside of loops.
- Use single-line if statements wherever reasonable.
- Update a check for Hyper Fang to Gen 6.
- Fix Ghost types getting Chople Berries in Random Doubles Battles.
- Fix a typo intended to fix in d24b184b and another one introduced in the same commit.
2014-08-25 01:42:17 -05:00
Ivo Julca
d24b184b92 Fix typos in doubles random battle moves 2014-08-25 00:39:58 -05:00
Ivo Julca
b3b435c1fd Battle.active now defaults to false.
This fixes the issue of players being unable to join any battles they start.
2014-08-25 00:01:00 -05:00
Guangcong Luo
99af7138d7 Merge pull request #1166 from NickMP/patch-6
NEXT: Update README, add Phantom Force, Misc. Bug Fixes
2014-08-24 23:01:54 -05:00
Ivo Julca
b4ec88610f Properly load banlist tables for modded formats
They are no longer loaded in Tools.getFormat, which could be called from any modded tools and cached the bans.
2014-08-24 22:24:09 -05:00
Ivo Julca
6a9497b53c Use shallow merges to load mod data 2014-08-24 19:15:53 -05:00
Guangcong Luo
ab0579fece Merge join reporting with other updates if possible
This cuts down on reporting delay and bandwidth usage very slightly,
and makes sure join reporting is done in order. It uses slightly
more RAM because of more frequent userList updates. Overall, not
a very big change.
2014-08-24 18:48:15 -04:00
Guangcong Luo
0a33864dfc Refactor user room-join code
Logic should be more straightforward now
2014-08-24 18:48:15 -04:00
NickMP
b6d3bd9e42 NEXT: Fix Echoed Voice/Bide | Add Phantom Force
Update Bide to use StallMove, due to it giving it's user Endure for the duration.
Update Echoed Voice, so that the first hit can be protected against, and the second cannot. Also make both hits considered Sound moves.
Update Phantom Force to be in line with other two turn charge moves.
2014-08-24 06:51:19 -04:00
NickMP
af0772c451 NEXT: Remove Lilligant from GossamerWing's Damage Reduction
Update GossamerWing to no longer include Lilligant in the list of Pokemon who take reduced damage from Rock, Ice, or Electric type moves, as Lilligant is not a Flying type.
2014-08-24 06:47:10 -04:00
NickMP
7652a0300b NEXT: Fix Truant/Flinch/Recharging interaction
Update Truant's effect to have an onBeforeMovePriority of 99, like in the base files, to fix a small number of bugs where Slaking could still flinch on it's loafing turn, and having to recharge would interupt it as well.
2014-08-24 06:38:55 -04:00
The Immortal
a308ab750f Update /om 2014-08-24 11:52:07 +04:00
The Immortal
baa96a3a90 Add space 2014-08-24 11:32:39 +04:00
The Immortal
1667e8e6b0 Merge pull request #1165 from jas61292/patch-2
Update CAP Banlist re: Mega Mawile
2014-08-24 15:31:52 +08:00
Guangcong Luo
f4f0adb5bd Update node-static version 2014-08-24 02:33:30 -04:00
Guangcong Luo
dca5d43d9a Fix crash when player doesn't exist 2014-08-24 02:30:45 -04:00
Guangcong Luo
b65639cefe room.add no longer sends updates
You must now manually send the update by calling `room.update()`
after `room.add()`.

This is because it used to be inconsistent: `ChatRoom#add` would send
the update by default, but `BattleRoom#add` wouldn't.
2014-08-24 02:25:37 -04:00
NickMP
4ddc5a9eac NEXT: Update README
Update README with recent changes while fixing a few typos.
2014-08-24 01:48:39 -04:00
jas61292
a0b83081bb Update CAP Banlist re: Mega Mawile 2014-08-24 00:25:01 -04:00
Guangcong Luo
59d6fa7e93 Merge pull request #1164 from Slayer95/quickguard
Fix Quick Guard failing to protect from moves called by other moves
2014-08-23 22:30:01 -05:00
Guangcong Luo
cd4e357ea2 Merge pull request #1163 from Slayer95/evalbattle
Support pipe operator (|) in /evalbattle
2014-08-23 22:29:22 -05:00
Guangcong Luo
046c3b15ff Rename Hackmons -> Classic Hackmons 2014-08-23 23:23:56 -04:00
Guangcong Luo
49e0e7ea31 Fix missing semicolon 2014-08-23 22:39:06 -04:00
Guangcong Luo
fc96524d5c Drop support for /help all
Also drop support for the rank-specific command lists, like /help @
2014-08-23 22:35:59 -04:00
Guangcong Luo
2373e89fce Room refactor
Now ChatRooms and BattleRooms inherit from a generic Room prototype,
which means, among other things, less code duplication between them.

In the process, sending old message times has been refactored to be
much more sane, and now uses |c:| and |:| instead of |tc|.

Other changes include that user symbols now show up in battles,
like in chat rooms.
2014-08-23 22:20:20 -04:00
Guangcong Luo
1bca5d18c0 Show error message when joining active battles 2014-08-23 22:20:20 -04:00
Guangcong Luo
0df3befce3 /slowlockdown command
Like /lockdown, but doesn't tell existing battles to hurry up.

For use in smogtours, but I guess other servers can use it too.
2014-08-23 22:20:20 -04:00
Ivo Julca
9a1ad50574 Fix Quick Guard failing to protect from moves called by other moves 2014-08-23 20:05:50 -05:00
Ivo Julca
892103076b Support pipe operator (|) in /evalbattle 2014-08-23 19:57:07 -05:00
The Immortal
342cd1bb61 Properly add the new Hackmons 2014-08-24 00:13:16 +04:00
The Immortal
82efb0ca18 Update Mega Mawile's tier 2014-08-23 23:42:51 +04:00
The Immortal
8a49d3fd54 Update formats.js
- Ban Mawilite in Almost Any Ability as it follows the OU banlist
- Forgot the HP Percentage Mod in Hackmons
2014-08-23 23:41:30 +04:00
The Immortal
00c4409527 Add back Hackmons as challenge only
Could have sworn Custom Game didn't have Team Preview
2014-08-23 23:18:46 +04:00
The Immortal
9cfed73905 Merge pull request #1162 from macrarazy/patch-12
Remove Hackmons in /om command
2014-08-23 18:49:19 +08:00
macrarazy
b8d8be7520 Remove Hackmons in /om command
This is to match with 233133fac0 and to avoid any confusion among users
2014-08-23 15:48:13 +05:00
The Immortal
9c443b3141 Update NU stage 2014-08-23 12:50:39 +04:00
The Immortal
233133fac0 Remove Hackmons
http://www.smogon.com/forums/threads/announcement-regarding-hackmons.3515735/
2014-08-23 12:31:52 +04:00
V4Victini
9465226694 Add Team Preview to Balanced Hackmons 2014-08-22 23:32:35 -04:00
Guangcong Luo
a963fd6236 Deprecate room.i
This has the side effect of making removeRoom O(n) instead of O(1ish),
but in return, we stop creating a whole bunch of objects, and also
less state that can become inconsistent is good.
2014-08-22 21:18:42 -04:00
The Immortal
9915cef3d7 Add new events 2014-08-23 02:07:05 +04:00