Commit Graph

9110 Commits

Author SHA1 Message Date
Guangcong Luo
d2a60eb10c Merge pull request #2062 from SolarisFox/patch-1
/dexsearch: BST as stat comparison parameter
2015-07-17 15:49:57 -05:00
SolarisFox
f5879578e5 /dexsearch: BST as stat comparison parameter 2015-07-17 13:28:43 -07:00
Marty-D
fc1268da2e Fix Telepathy's interaction with Bide 2015-07-17 15:52:19 -04:00
Guangcong Luo
41a9706de0 Merge pull request #2058 from Slayer95/smogdex-formats
Bring back formats support for /smogdex
2015-07-17 13:41:00 -05:00
Guangcong Luo
0eb6f4b244 Merge pull request #2006 from ascriptmaster/move-fixes-2
Fix PP deduction interactions with Pressure
2015-07-17 13:40:19 -05:00
Ivo Julca
6dfcc73bac Bring back formats support for /smogdex
Early versions of the revamped Smogon Pokédex dropped support for formats; however, now more formats than just Singles/Doubles are supported, and there furthermore main pages for those.
2015-07-17 07:24:35 -05:00
The Immortal
4a4857631c Ban Swift Swim from Tier Shift 2015-07-17 13:26:42 +04:00
The Immortal
c0fa19bb56 Update Mix and Mega bans 2015-07-17 13:25:59 +04:00
The Immortal
37a855b450 Ban Smooth Rock from Monotype 2015-07-17 13:21:01 +04:00
Kevin Lau
4da92ae00c Upgrade Follow Me test to check for self-targetting moves 2015-07-17 01:48:01 -07:00
Kevin Lau
913704c3ac Release and update Pressure tests
Added a check for Harsh Sun/Water moves failing and deducting PP.

Spikes has 32 max PP. Correct relevant values in the code.
2015-07-17 01:47:58 -07:00
Kevin Lau
b0e1fd5789 Fix Pressure's interaction with multi-target moves and Follow Me
Implement new function getMoveTargets to list all move targets given a
user and a move. Refactor Battle system to remove redundancies with
checking move targets. Run the RedirectTarget in this function instead of
later after TryMove, since technically single-target moves changing
targets should occur before the move is attempted.

Refactor the DeductPP event to be a singleEvent that targets the Pokemon's
ability instead of a global event. Run this event on the move's targets as
calculated by BattlePokemon#getMoveTargets.
2015-07-17 01:47:55 -07:00
Ivo Julca
896cd60c26 Battle Factory: fix sets with more than 510 total EVs 2015-07-16 17:56:14 -05:00
Guangcong Luo
3bde6c758b Merge pull request #2050 from ascriptmaster/tests
Fix Mold Breaker interaction with Damp
2015-07-16 16:36:43 -05:00
Guangcong Luo
b82880f405 Merge pull request #2056 from Slayer95/tournament-show
Support toggling format availability for tournaments
2015-07-16 16:25:48 -05:00
Guangcong Luo
dd042eecef Merge pull request #2055 from xfix/weather-status
Show that weather began even under Air Lock effect
2015-07-16 16:25:20 -05:00
Ivo Julca
15b925f7e4 RBY-GSC Randbats: Fix high incidence of later gen Pokémon 2015-07-16 13:33:42 -05:00
The Immortal
0f363e417e Info: Update /om
- Add new Monotype link
- Add description for 2v2
2015-07-16 22:18:01 +04:00
Ivo Julca
f9b660bae6 Support toggling format availability for tournaments 2015-07-16 13:00:19 -05:00
Ivo Julca
6d189221c0 Make BW random team builder fully deterministic
This was supposed to be done in baadd0a, but somehow most Math.random() calls remained unnoticed.
2015-07-16 12:36:05 -05:00
Ivo Julca
baadd0a92f Overhaul old-gen random team builders
Mainly follow-up for 1deedc595, but also fixes a few bugs.
- BW/GSC/RBY - randomSet: fixed and renamed slot argument.
- BW - randomTeam: crashlogger relative path was set incorrectly.
- BW - randomTeam: PotD Magikarp and Delibird used outdated randomBattleMoves data format.
- RBY - randomTeam: builder was too reject-happy regarding weaknesses (counters prematurely updated).

An improvement of 130% more op/s is observed for RBY randomCCTeam,
with no significative performance regression for randomTeam in any gen.
2015-07-16 12:03:14 -05:00
Ivo Julca
207cb41957 Remove indeterminacy from moves
Gen 1 Disable and Gen-NEXT Night Daze now use the battle RNG.
2015-07-16 12:03:12 -05:00
The Immortal
95d48d6df4 Remove UU suspect test 2015-07-16 19:29:40 +04:00
Konrad Borowski
c0b71f03b7 Show that weather began even under Air Lock effect 2015-07-16 16:12:47 +02:00
Slayer95
6a69c83fce Merge pull request #2054 from ascriptmaster/move-fixes
Sky Drop always redirects to the correct target
2015-07-16 06:28:02 -05:00
Kevin Lau
e5beaba7bf Upgrade Sky Drop test to check for Follow Me 2015-07-16 04:24:07 -07:00
Kevin Lau
7a5ff2166f Sky Drop always redirects to the correct target 2015-07-16 04:10:05 -07:00
Guangcong Luo
3f41b76059 Support forcing priority 0 in .resolvePriority 2015-07-16 02:20:35 -04:00
Guangcong Luo
aae50cdb43 Ban Leppa+Bestow in Endless Battle Clause 2015-07-16 02:19:24 -04:00
Guangcong Luo
91e52bdca5 Fix Heal Pulse ban to singles only 2015-07-16 02:12:35 -04:00
Guangcong Luo
5c3c0c18f3 Merge pull request #2048 from Slayer95/room-punishments
Improve room punishments
2015-07-16 00:37:26 -05:00
Guangcong Luo
75d4fc3b21 Update Endless Battle Clause 2015-07-15 19:29:18 -04:00
Guangcong Luo
c43c8cea1f Improve phrasing of teambuilder messages 2015-07-15 19:27:42 -04:00
Guangcong Luo
30addc6f9f Update Dev room !htmlbox permissions 2015-07-15 19:27:42 -04:00
The Immortal
85a4c8d9cb Info: Update OU Theorymon link 2015-07-16 02:22:21 +04:00
Guangcong Luo
1e9eeea4bd Merge pull request #2053 from ascriptmaster/protocol
Update PROTOCOL.md to document [anim], move info on action tags
2015-07-15 16:51:10 -05:00
Kevin Lau
783d43bd93 Fix Mold Breaker interaction with Damp
Damp should be suppressed by Mold Breaker.
2015-07-15 14:48:58 -07:00
Kevin Lau
55f08be727 Add many Ability tests related to Mold Breaker 2015-07-15 14:48:57 -07:00
Kevin Lau
2c4fbd9070 Update PROTOCOL.md to document [anim], move info on action tags
The info on action tags are now in the Major Actions section since the
|move protocol message uses them as well.
2015-07-15 14:30:17 -07:00
Ivo Julca
4b437ca62c Battle Factory: update sets for recent bans 2015-07-15 06:21:00 -05:00
Guangcong Luo
2a86ff1a14 Merge pull request #2051 from ascriptmaster/move-fixes
Don't let Cloud Nine suppress Residual or End events from weathers
2015-07-14 23:12:01 -05:00
Guangcong Luo
d8d573604d Merge pull request #2031 from Slayer95/tools-try-catch
Improve error handling in Tools load
2015-07-14 23:10:29 -05:00
Ivo Julca
c1e452ea59 Improve error handling in tools loading
- Isolate try-catch blocks
- Throw meaningful early errors wherever possible.
2015-07-14 21:54:37 -05:00
The Immortal
84cc2bc2c6 Add Hoopa to Standard GBU bans 2015-07-15 02:03:05 +04:00
The Immortal
2ab838b9b0 Add new Battle Spot Special 2015-07-15 02:01:47 +04:00
Kevin Lau
40f7e02f70 Don't let Cloud Nine suppress Residual or End events from weathers
This allows the client to remove the weather when it expires, even if
there is a Cloud Nine Pokemon on the field.
2015-07-14 14:54:31 -07:00
Ivo Julca
2d5609d1f8 Escape HTML in /whois 2015-07-14 05:51:48 -05:00
Ivo Julca
cea3a13c11 Fix API to parse broadcast commands
Fixes the long-standing issue of bad interaction between `this.parse('!command')` and `this.canBroadcast()`: each time the latter was called, it would announce the command usage.
2015-07-14 04:40:32 -05:00
Ivo Julca
d6e7e582c0 Improve room punishments
- Only display popups to users who are currently in the room. This prevents abuse.
- Allow warns to be used in private rooms with own authorities.
- Hour-mutes now display "1 hour" rather than "60 minutes".
- Display a button to list room staff in the roomban popup.
2015-07-14 03:23:58 -05:00
Ivo Julca
e3a8bbb897 Isolate try-catch blocks in Tools load 2015-07-14 02:06:23 -05:00