Commit Graph

23714 Commits

Author SHA1 Message Date
Marty-D
5388cba493 Gen II: Fix Detect/Endure/Protect success chances 2016-11-01 21:13:11 -04:00
The Immortal
21cd59d2f8 Random Battle: Improvements 2016-11-01 10:13:44 +04:00
PrinceOfPersian
66299b133d Fix broadcast help functions called from !help <cmd> (#2868) 2016-11-01 00:26:44 -05:00
The Immortal
5c14138b54 Add new RoA Spotlight 2016-11-01 04:47:34 +04:00
The Immortal
796cb595d3 Update Other Metagames 2016-11-01 04:40:22 +04:00
panpawn
430339dccf Showblacklist: Use room title in UI (#2867) 2016-10-31 01:54:15 -05:00
The Immortal
bc49845604 Random Battle updates
- Improve Aerodactyl’s moves
- Make sure Dedenne has STAB other than Nuzzle
2016-10-30 01:58:47 +04:00
panpawn
da7fbe031b Checkpunishment: Don't use target id in UI (#2863)
This makes it more streamlined to how `/whois` looks
2016-10-29 00:04:20 -05:00
The Immortal
3735fd1e71 Add OU suspect test 2016-10-28 00:04:26 +04:00
QuiteQuiet
17a18e7a2a Tests: Update TeamValidator tests and add new ones (#2855)
* Tests: Add TeamValidator nature and happiness test

* Tests: Make TeamValidator test synchronous
2016-10-27 13:01:35 -05:00
panpawn
157d419c1a Studio: Add Song of the Day functionality (#2848)
Requested by #Don't Lose

This also fixes the check for it a user can talk in the set command to be the same check throughout PS.

This also fixes escaping HTML for the set artist in two specific instances.
2016-10-26 18:57:59 -05:00
panpawn
042dfca024 Invite: Do not inv to a room someone is in already (#2856) 2016-10-26 18:57:17 -05:00
panpawn
e877fc9174 Remove unused documented config-example perm (#2857)
The redirect command actually uses the 'warn' permission, and it seems as though this permission actually isn't a permission of any of the ranks currently.
2016-10-26 18:57:04 -05:00
panpawn
5f8d655609 chat-plugins/faq.js -> chat-plugins/room-faqs.js (#2859)
'faq.js' is vague and inconsistent to it's actual functionality, that being, specifically for *rooms*
2016-10-26 18:56:44 -05:00
panpawn
0a93cd1190 Enable announce command in PMs (#2860)
Before the semi-recent PM refactor, `/announce` /would/ work in private messages, this re-enables that functionality.
2016-10-26 18:33:13 -05:00
panpawn
2f834d6551 Roomfaqs: Add missing </code> tag in UI (#2858) 2016-10-26 12:31:56 +02:00
The Immortal
ab69ab8f74 Mix and Mega: Ban Baton Pass 2016-10-25 05:38:02 +04:00
Guangcong Luo
893825a881 Properly display Baton Pass Speed Clause 2016-10-24 16:14:46 -05:00
QuiteQuiet
c300bcf9ce Fix minor information leak with Pursuit (#2852) 2016-10-24 16:23:12 -04:00
McLemore
f223d5bf7d Team Validation: Validate Natures (#2853)
Simplify "if" statement

Fix "set.nature.name.exists" always returns undefined

Add '.name' and modify 'if' statement

Simplify 'if' statement
2016-10-24 11:20:50 -05:00
Guangcong Luo
22c6342c00 Support offline users in /alts
/alts now delegates to a new command /checkpunishment, if passed an
unknown username. This allows mods to check offline users for active
punishments.
2016-10-23 22:00:49 -04:00
Guangcong Luo
305931ab18 Fix crash when calling dex.mod() from a mod 2016-10-23 22:00:16 -04:00
Guangcong Luo
02055d3d17 Fix mod loading order
Sometimes mods would mess up if they were loaded in the wrong order.
Specifically, some autogenerated properties of e.g. moves need to be
recalculated for mods.

Anyway, the entire cache system is replaced with a newer, faster,
slightly-more-memory-intensive-but-only-slightly cache system, which
no longer has these kinds of loading order issues.
2016-10-23 14:17:13 -05:00
Guangcong Luo
7d8d47c97c Refactor BattleEngine
Battle is now an ES6 class... mostly... it's complicated.

Battle's inheritance system has always been a mess. I tried to redo it
in a sensible way but it caused nondeterministic test failures. Not
even kidding; different things would fail each time I ran tests, even
without code changes. I'll investigate closer later, but this refactor
makes it use ES6 classes with only a small amount of hacking, which is
good enough. It is, at the very least, simpler than the previous mess.

BattleEngine.Battle.construct has been renamed BattleEngine.construct.
2016-10-22 23:11:26 -05:00
Nixola
a99992c14c Added third type to /weakness (#2851)
* Added third type to /weakness
In case of Trick-or-Treat or Forest's Curse, a pokémon can have three types. I updated the /weakness command to reflect that.

* Fixed Travis' warning and error
2016-10-22 18:36:41 -05:00
051
8d32874c4b Grammar fix in /scavengerstatus (#2850) 2016-10-22 04:00:24 -05:00
Guangcong Luo
dc1c5b0ca5 Support repeated /lockdown 2016-10-21 15:58:13 -05:00
Guangcong Luo
47adaf0bde Minor refactor
Chat is now being included in battle processes, because Chat.escapeHTML
is convenient to have and because the recent Chat refactor makes it
relatively lightweight to include (it doesn't load chat commands
unless you call Chat.parse)
2016-10-21 15:47:06 -05:00
Guangcong Luo
27ffe81ff4 Apply filterCaps/filterStretch to usernames 2016-10-21 16:04:30 -04:00
Guangcong Luo
2604780ec5 Refactor Tools
Tools will be renamed to Dex soon, which is why the code inside Tools
is calling itself "Dex" now, but right now we're just refactoring its
internal code and not officially renaming it yet.

In the meantime, Tools is now an ES6 Class.

A long-standing bug in learnset loading order (the one
test/chat-plugins/datasearch.js tests for) has finally been fixed, so
Tools.includeMods() is no longer necessary to accurately access modded
data.

Tools.mod has been split into Tools.mod(modid) and
Tools.format(format). The issue of Tools.mod being ambiguous about
whether it's passed a mod or a format hasn't been a _bug_ for a while,
but this is still more readable.

Other renames include:

Tools#isLoaded -> Tools#dataLoaded
Tools.includeMods() -> Tools.includeModData()
Tools.preloadMods() -> Tools.includeMods()
Tools.preloadedMods -> Tools.modsLoaded
Tools.moddedTools -> Tools.dexes

Do not just rename your calls of Tools.includeMods() to
Tools.includeModData(). With the learnset loading bug fixed, there's
no reason to use it unless you need direct access to
Tools.dexes[...].data for some reason (you don't, just use
Tools.mod(...).data)
2016-10-21 13:23:21 -05:00
Guangcong Luo
87c41eb67c Rename simulator.js to room-battle.js
simulator.js doesn't actually contain the simulator, but is really just
an implementation of battles in the RoomGame interface.

Renames:
`Simulator.Battle` -> `Rooms.RoomBattle`
`Simulator.BattlePlayer` -> `Rooms.RoomBattlePlayer`
`Simulator.SimulatorManager` -> `Rooms.SimulatorManager`
`Simulator.SimulatorProcess` -> `Rooms.SimulatorProcess`
`Simulator.create` -> no longer exists, use `new Rooms.RoomBattle(...)`
2016-10-21 13:21:12 -05:00
Spandan
bf6fdba2c4 OMotM: Unban Eviolite (#2849) 2016-10-21 11:12:53 +04:00
Marty-D
b71e52c737 Update event Pokemon IVs 2016-10-20 22:59:58 -04:00
Guangcong Luo
6ffeea7851 Add alias "bss" -> "Battle Spot Singles" 2016-10-20 21:31:52 -04:00
Guangcong Luo
d341c79789 Sync datacenters.csv 2016-10-20 21:31:52 -04:00
Guangcong Luo
d84d06a8d2 Add !optionsbutton and !soundsbutton 2016-10-20 21:31:52 -04:00
Guangcong Luo
93af6334f0 Fix invite permissions
Locked users were able to invite.
2016-10-20 21:31:52 -04:00
Marty-D
225ce590d0 Add new event Pokemon 2016-10-20 16:15:36 -04:00
Quinton Lee
77d6aba72f Tournaments: send userids in dq error messages 2016-10-20 11:06:45 -05:00
Quinton Lee
fbce77a521 The Happy Place plugin: change permission to mod+ 2016-10-19 19:53:50 -05:00
The Immortal
736598eaf3 Random Battle: Improvements
- Update moves for Cosplay Pikachu
- Prevent Protect with dual screens
- Lower Castform’s rate
2016-10-19 22:30:04 +04:00
urkerab
f898660dde Allow formats to unban inherited formats or rulesets (#2844)
* Revert "Fix 056e1a0b2309751071b13d233a131fc595bc82fd"

This reverts commit fb4066d476.

* Revert "Allow formats to override inherited formats or rulesets (#2547)"

This reverts commit 056e1a0b23.

* Allow formats to unban inherited formats or rulesets
2016-10-18 09:28:08 -05:00
panpawn
5912b2b512 Give drivers access to /banword list (#2845)
It doesn't make sense to me that drivers have access to /showbl but not for /banword list
2016-10-18 13:31:24 +02:00
panpawn
df6cb35580 Mee: Filter out following text (#2835)
Before, `/mee` didn't used to allow for a target that started with a number or letter, as this could lead to impersonation.

Ex: `/mee 2 tests` - if you're name is bobbyuser, then it would appear as "bobbyuser2 tests" in the chat.

This makes it so the the target of `/mee` cannot start with a number or letter.
2016-10-16 23:24:02 -05:00
The Immortal
f11cf66b03 Random Battle updates 2016-10-16 18:11:43 +04:00
The Immortal
7193860ac1 Analysis: Fix BH links 2016-10-16 05:24:12 +04:00
The Immortal
a4efc221ba OMotM: Unban Talonflame 2016-10-16 03:06:33 +04:00
HoeenCoder
0d867de0d2 Fix incorrect wording in modjoin (#2843) 2016-10-14 23:12:30 -04:00
urkerab
efdc8e33a0 Run powder immunities in the correct order (#2842) 2016-10-14 23:11:59 -04:00
Quinton Lee
28d6256502 Tournaments: update message in /tour banlist 2016-10-13 19:32:10 -05:00