Guangcong Luo
a61bd2d1d8
/modlog in staff room defaults to global
...
There's /modlog staff, if for whatever reason you need a modlog for
the staff room specifically.
2015-06-27 22:44:53 -04:00
Guangcong Luo
aeacf464e1
Small lock/ban/fr refactor
...
This takes advantage of the new CommandParser changes: lock/ban
now return true on success. The other changes are comparably
minor: fr now uses splitTarget, and lock/ban save the last
used userid if the current userid is a guest.
2015-06-27 22:44:04 -04:00
Guangcong Luo
56b65803ff
Support returning true from commands
...
Returning true works the same way as returning something falsy; this
is mostly in case you want to call a command from another command
and detect whether or not it was successful.
2015-06-27 22:41:19 -04:00
Guangcong Luo
7419a03626
Modlog refactor
...
The modlog API is now accessible from outside of CommandParser
through CommandParser.writeModlog.
We now also have a concept of a global modlog, and some new
command APIs for writing to it.
2015-06-27 22:35:31 -04:00
Guangcong Luo
3b1ef6c616
Export more variables from Users
...
Certain tables weren't being exported.
2015-06-27 22:33:40 -04:00
Guangcong Luo
53516692ec
Export CommandParser.baseCommands
...
These are commands from commands.js, before they're possibly
overwritten by other chat commands. It's a shallow copy so memory
impact will probably be minimal.
2015-06-27 22:32:51 -04:00
Marty-D
a179b5c37c
Clarify description of mostly useless Berries
...
...and Rare Bone
2015-06-27 16:54:49 -04:00
Kevin Lau
51f2cd93ff
Fix Color Change test wording
2015-06-27 00:42:21 -07:00
Kevin Lau
020c08d5d9
Add tests for Color Change, Relic Song, Thief
2015-06-27 00:40:16 -07:00
Guangcong Luo
536fd52b1a
Merge pull request #2009 from ascriptmaster/move-messages
...
Fix -fail messages appearing with Circle Throw/Dragon Tail
2015-06-27 06:23:20 +00:00
Kevin Lau
b1b9c05db6
Fix -fail messages appearing with Circle Throw/Dragon Tail
2015-06-26 23:10:45 -07:00
Ivo Julca
204501791b
Do not save group for unregistered users
2015-06-26 22:59:36 -05:00
Ivo Julca
fc89d5f372
Test suite is now deterministic
2015-06-26 21:55:43 -05:00
Kevin Lau
dafbefe973
Fix Sky Drop test pointing at wrong generation
...
It should be Doubles Custom Game, not [Gen 5] Doubles Custom Game.
2015-06-26 19:07:47 -07:00
Kevin Lau
5403862e43
Fix random failure in Sky Drop test
...
In Doubles, if a decision is not specified, it tends to choose the first
move but the intended target can be wrong.
2015-06-26 18:59:43 -07:00
Marty-D
694fda0662
Gen V, VI: Fix Abilities and items working while inactive
...
- Fixes Doom Desire and Future Sight getting boosted by effects such as
Choice Specs while their user is inactive
2015-06-26 21:51:39 -04:00
Guangcong Luo
250bc0d617
Merge pull request #2008 from SolarisFox/patch-6
...
Proper error handling in /dexsearch and /movesearch
2015-06-27 00:47:07 +00:00
SolarisFox
bbd89946d2
Proper error handling in /dexsearch and /movesearch
2015-06-26 15:52:51 -07:00
Guangcong Luo
b5abd38d17
Merge pull request #1843 from SolarisFox/patch-6
...
/randompokemon mode for /dexsearch
2015-06-26 21:55:13 +00:00
Marty-D
1d7f27c655
Gen II: Smoochum can't legally learn Lovely Kiss
...
- There are no males in the Human-Like group that can pass it down
2015-06-26 15:04:04 -04:00
SolarisFox
c9d7eaf685
/randompokemon mode for /dexsearch
2015-06-26 09:06:59 -07:00
Ivo Julca
42d57466fb
Timeout errors should have a stack trace too.
2015-06-25 22:29:05 -05:00
Guangcong Luo
e6d952b035
Clarify command-not-found message
...
The previous text implied that it was possible to send !command
without broadcasting. This isn't actually possible.
2015-06-25 17:53:40 -04:00
Guangcong Luo
809693caeb
Fix crash in wifi chat-plugin
2015-06-25 17:53:39 -04:00
Guangcong Luo
c1219d38ab
Merge pull request #2003 from ascriptmaster/move-fixes-2
...
Simple Beam and Worry Seed reveal the target's ability
2015-06-25 21:43:30 +00:00
Kevin Lau
231c2c7443
Simple Beam and Worry Seed reveal the target's ability
2015-06-25 12:29:43 -07:00
Marty-D
d32b69f48d
Fix Attract end messages
2015-06-25 12:29:30 -04:00
The Immortal
d48f5c3392
Info: Update /tiers NU
2015-06-25 14:56:18 +04:00
Guangcong Luo
e35ed8ebd5
Refactor login
...
finishRename was a really huge function. This splits it into three
much more manageable functions with more useful names.
2015-06-25 04:43:34 -04:00
Guangcong Luo
d6cc52b528
Merge pull request #2002 from QuiteQuiet/protocol
...
Add more minor actions to PROTOCOL.md
2015-06-25 05:41:35 +00:00
Quite Quiet
5d3d62c6a3
Update PROTOCOL.md with more minor actions
2015-06-25 07:22:21 +02:00
Ivo Julca
0bffa43f85
Add NU suspect test
2015-06-24 23:44:15 -05:00
Ivo Julca
6207e69eef
/effectiveness: don't calculate modifier for Status moves
...
Verdict: I am culprit
2015-06-24 21:40:20 -05:00
Ivo Julca
2db4b6bf44
Misc command parser fixes
...
- Return proper error message for forbidden commands.
- Fix a recursive crash in lobby-less servers.
- Fix a stack overflow in some (very stupidly) modded servers.
2015-06-24 20:49:39 -05:00
Guangcong Luo
9dbeff0a1a
Merge pull request #2001 from Slayer95/command-parser
...
Refactor command parser and add more APIs
2015-06-25 01:08:04 +00:00
Ivo Julca
9b1b078534
Command API: this.run executes a command with current parameters
...
- Provides a straightforward way to add command aliases with own help entries.
- Encapsulates try-catch blocks.
2015-06-24 18:35:58 -05:00
Ivo Julca
00640a5218
Command API: this.cmdToken is either '/' or '!' depending on input
...
Also adds feature parity for !commands to be escaped with double !,
and to be returned from `canTalk`.
2015-06-24 18:35:33 -05:00
Ivo Julca
214fd79fdf
Refactor command context creation to use a prototype
...
Also support custom extensions to command API from plugins.
2015-06-24 18:34:16 -05:00
Kevin Lau
ac4cda7a7a
Merge pull request #1997 from ascriptmaster/tests
...
Add Sky Drop tests and pending Sky Drop glitch tests (for Gen 5)
2015-06-24 16:09:25 -07:00
Kevin Lau
e02e25289d
PROTOCOL.md: Change bold headers to h6 within Battle Messages
...
This allows Battle Message subsections to be linked to directly.
2015-06-24 00:27:09 -07:00
Guangcong Luo
80e43a392b
Merge pull request #2000 from ascriptmaster/master
...
Cut down on debug messages emitted in runEvent
2015-06-24 04:39:08 +00:00
Kevin Lau
f0206228cb
Cut down on debug messages emitted in runEvent
...
This line of code was emitting a lot of debug messages that are presented
without context and can be confusing to viewers of the battle log.
2015-06-23 21:27:28 -07:00
Guangcong Luo
5f556f0323
More reliable Config.loginfilter
2015-06-23 23:18:05 -04:00
Guangcong Luo
aa2dad529d
Add crash guard to team validator
...
Team validator crashes no longer stop battles from being created
until the next restart.
In theory, at least.
2015-06-23 23:14:58 -04:00
Guangcong Luo
3c9a3a29ba
Refactor Dnsbl.reverse
...
This renames exports to Dnsbl for ease of hotpatching.
2015-06-23 23:14:58 -04:00
Guangcong Luo
93db8d50eb
Sync nohost list
2015-06-23 23:14:58 -04:00
Guangcong Luo
377943bfaa
Nicer restart message
...
When trying to start a battle during a lockdown, the message is
now "The server is restarting" instead of "The server is shutting
down", to make it clearer that it'll come back up in a few minutes.
2015-06-23 23:14:58 -04:00
Guangcong Luo
c6c7503d45
/ban no longer lists guest alts
2015-06-23 23:14:58 -04:00
The Immortal
cc5ae35b44
Random Battle: Prevent Focus Blast with Close Combat
2015-06-24 05:35:58 +04:00
Kevin Lau
57a6328bc9
Sky Drop prevents both the user and the target from being dragged out
...
onSource event handlers only trigger when the event has the Pokemon with
the effect as a source, and doesn't actually track when effectData.source
is used as the event target. This means an onAny event handler is needed
instead.
2015-06-23 11:49:59 -07:00