Annika
c2e97aaaed
Use optional chaining in more places ( #8063 )
2021-02-22 11:42:05 -08:00
Leonard Craft III
3696796ca6
Use HP 100ths in Gen 8 formats ( #8054 )
2021-02-21 15:14:26 -08:00
Guangcong Luo
1b281650c6
Rename Stadium to Gen 1 Stadium
...
This is required to add support for Stadium in unit tests. A lot of the
codebase assumes that all mods start with "gen" followed by a number,
but I don't want to touch the others at the moment.
2021-02-15 21:03:47 -08:00
Instruct
e7695c4b78
Gen 3: Add Deoxys Forme Clause and Deoxys Camouflage Mod ( #8024 )
2021-02-15 01:37:58 -08:00
pyuk-bot
ccb92de32b
Set abilityOrder before entrance effects activate ( #8010 )
2021-02-11 16:14:59 -05:00
pyuk-bot
e939d9cd6d
Actually don't allow Struggling Pokemon to Dynamax ( #8011 )
2021-02-10 17:10:41 -05:00
Leonard Craft III
220cac3aa7
Convert modifiers from hex to decimal ( #8003 )
2021-02-10 17:02:18 -05:00
The Immortal
43daacb8d1
Fix Gigantamax Melmetal crash
2021-02-04 17:06:43 +04:00
Guangcong Luo
3835c3cfeb
Add a comment warning about eval inputlogs
2021-02-02 15:27:14 -08:00
Guangcong Luo
782f316dd9
Merge BattleStream and RoomBattleStream commands ( #7988 )
...
RoomBattleStream originally overrode `_writeLine` in #5428 because
`>eval` had a dependency on `Chat.stringify`, and we were trying to
separate sim and server.
`Chat.stringify` is now `Utils.visualize`, so there's no more reason
for the separation. In addition, the separation is actively bad,
because it makes it impossible to import certain inputlogs outside
of the simulator.
2021-02-02 15:03:03 -08:00
Guangcong Luo
796be8da60
Implement /ebat reseed
...
Fixes #7963
2021-02-02 13:45:34 -08:00
Mia
76c10841ea
Lib: Add an index file for all exports ( #7972 )
2021-01-31 18:00:19 -08:00
urkerab
edafebbbd8
Fix Magnet Rise in Inverse Battles ( #7943 )
...
* Make Magnet Rise work in Inverse Battles
* Improve Inverse Battle tests
Co-authored-by: Leonard Craft III <leonardcraft64@gmail.com>
2021-01-26 20:08:50 -06:00
Guangcong Luo
22f323dfed
Fix National Dex validation
...
The "Standard NatDex" rule didn't apply all NatDex rules, because some
were hardcoded to apply to formats with "National Dex" in their name.
This has been fixed; now all validation relies on the "Standard NatDex"
rule.
Refs a problem discussed in #7909
2021-01-13 00:31:14 -08:00
urkerab
26eeaa1fa3
Unnerve should activate before hazards after phazing ( #7911 )
2021-01-12 19:54:46 -08:00
The Immortal
3ae56399bd
Label Pokemon banned from LC as NFE
2021-01-11 00:29:18 +04:00
HematiteH2O
111ab3788f
Add Megas For All and Double Trouble ( #7893 )
...
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-01-09 00:41:06 -08:00
Adam Tran
2c65de1a16
Fix various Future Sight / Doom Desire issues ( #7884 )
2021-01-07 19:20:30 -05:00
urkerab
2c0bd53966
Grassy Terrain should heal before Leftovers ( #7882 )
2021-01-07 19:17:48 -05:00
urkerab
80d652d59b
Sturdy should trigger before Focus Sash but after False Swipe
2021-01-05 16:58:03 +00:00
urkerab
845b4386c4
Pressure should not deduct additional PP from Sticky Web
2021-01-05 13:14:56 +00:00
Guangcong Luo
73c7d5e5d8
Fix bug in Sketch validation
...
Earlier today, I tried to remove the hardcode for Smeargle without
realizing what it was for (Smeargle gets Spore as an event move, which
shouldn't override its ability to Sketch Spore).
It turns out, 7 years ago when I added the Smeargle hardcode, I wrote
a TODO to fix it which I never got around to:
2e1ab04eb6
Anyway, this commit fixes it properly.
2021-01-03 23:52:33 -08:00
Guangcong Luo
6b3a3070c9
Refactor team validator for readability
...
`checkLearnset` has been renamed `checkCanLearn`.
`reconcileLearnset` has been replaced with `validateMoves`, which
bundles the actual `checkCanLearn` calls with the old
`reconcileLearnset`, making for a better name.
2021-01-03 23:26:20 -08:00
The Immortal
4ba7045bda
Validator: Remove extra space from cantLearnReason
2021-01-04 00:58:04 +04:00
Guangcong Luo
91c134fcf3
Remove unused variable
2021-01-03 10:19:54 -08:00
Guangcong Luo
ad656f67e4
Keep track of why moves can't be learned
...
The validator will now always know and be able to report exactly why
a move can't be learned, instead of sometimes not being able to figure
it out.
2021-01-03 09:53:04 -08:00
The Immortal
d9c2ee8d39
Lum Berry activates after Synchronize
...
Thanks @DaWoblefet!
2020-12-31 21:58:36 +04:00
MacChaeger
bb8aca0905
Fix move-disabling mechanics for Dynamaxed Pokemon ( #7853 )
2020-12-30 18:08:53 -05:00
LegoFigure11
cad1d25c4d
Add Gen 8 BSS Factory ( #7843 )
2020-12-31 02:09:29 +04:00
Adam Tran
d6e05d0a98
Fix Metal Burst interaction with called moves ( #7835 )
2020-12-30 14:36:06 -05:00
Adam Tran
674eb1449f
Fix Conversion 2 interaction with called moves ( #7813 )
2020-12-30 11:50:04 -05:00
Adam Tran
2f5fbad4e7
Fix Pursuit interaction with pivot moves ( #7819 )
2020-12-30 11:48:26 -05:00
Instruct
5b441c2013
Super Staff Bros 4 ( #7793 )
...
Collaborative Project lead by @xInstruct with many contributors.
See the Special Thanks section of https://www.smogon.com/articles/super-staff-bros-4
2020-12-24 11:21:02 -05:00
Mia
e601a5eb1f
Suspect tests: Move functionality out of sim/ ( #7769 )
2020-12-21 13:32:19 +04:00
urkerab
74ae95a91c
Update accuracy calculation for latest Gen 7 research ( #7806 )
2020-12-15 18:37:24 -05:00
Marty-D
9110419113
Gen III-IV: Stop suppressing weather when fainted
2020-12-14 17:07:26 -05:00
MacChaeger
da64d93765
Runners: Support 4P (and max games) ( #7700 )
2020-12-13 20:26:39 +00:00
Guangcong Luo
465d28171e
Refactor PRNG for readability
...
Closes #7787
2020-12-12 21:56:03 +00:00
MacChaeger
58ee2f2130
Activate Jaboca and Rowap Berry on KO ( #7779 )
2020-12-08 15:15:41 -05:00
urkerab
6daa05781b
Protean should affect the victim of Snatch rather than the user ( #7768 )
2020-12-07 09:43:55 +04:00
MacChaeger
ef4132edb8
Fix two-turn submoves + Ally Switch in Doubles ( #7654 )
2020-11-25 15:21:23 -05:00
MacChaeger
ffc632cbf1
Fix Burning Jealousy/Lash Out vs. "turn 0" effects ( #7730 )
2020-11-25 13:30:03 +04:00
MacChaeger
3dfa1bdd91
Fix Emergency Exit/Wimp Out false positives ( #7719 )
2020-11-24 05:42:55 -08:00
May Evans
94e9ca7aee
Gen 1: Fix Counter vs Hyper Beam ( #7707 )
...
Fixes this issue, which was brought to my attention by EB0LA:
https://replay.pokemonshowdown.com/gen1ou-1226178707-boclvwycxq72syl17qt9a3729l1tprkpw
https://replay.pokemonshowdown.com/gen1randombattle-1224344866-9ha6ocg38ru2ontlnf0iak467r2nzu0pw
Thanks to Zarel for helping me figure out what to do ^^;
2020-11-18 05:55:18 -08:00
Guangcong Luo
3336decb79
Implement Desync Clause Mod for Gen 1 Counter
2020-11-15 02:18:37 +00:00
Marty-D
826dd94eae
Validator: Fix Ability attribution from Virtual Console
2020-11-13 11:28:10 -05:00
Marty-D
b098b54187
Validator: Fix Ability attribution from Dream World
2020-11-12 18:13:58 -05:00
urkerab
ec8cd25d59
Properly update Diamond Storm boosts for Gen 7 ( #7638 )
2020-11-12 10:27:18 -05:00
The Immortal
cc27e0b2fc
species.prevo is a name
2020-11-12 06:59:47 +04:00
The Immortal
fff0f6c806
Release Gigantamax Melmetal
...
Also added necessary validation for it as its event is a special case.
2020-11-12 05:41:24 +04:00