* Allow AVs should take happiness into account
* Default happiness is already set in pokemon.ts
* Default happiness in the validator
natureModify only receives the set, not the actual Pokemon :/
* Implement Let's Go Normal Rules
* Fixes
* Remove EV limit
* Remove condition
* Add EV Limit = 0
Avoid "Pokemon has exactly 0 EVs - did you forget to EV it?"
* Final fix
* Happiness is fixed to 70
* Revert changes
* Rename Let's Go to LGPE
* Re-add comment
* Change Scream Tail's ability
* Balls Random Battle: Initial Commit
* Fix errors
* fix 1 more error
* Team Generator Temp Fix + Add Broadcast
* actually add the broadcast message
* Add new Virus sprite
* Add new Virus sprite for real this time
* Modify HP after forme regression
* Clip negative HP
* Change method name
* Don't reveal illusion
Should be redundant
* Move message timing
* Fix dynamax
* Clip HP for possible OMs
* Check using baseMaxHp
* Conditions.........
* Use ternary operation
* Fix comment
* SideConditionStart event should target the side with the condition
* Use Slayer95's approach
* Delete data/mods/gen9fe/abilities.ts
---------
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
* Move the gender logic to the validator
* Modify test seed
* Modify seed for other test
* Fix for RandBats
* Remove gender enforcement
* Revert "Remove gender enforcement"
This reverts commit c9c66a3725.
* Allow choosing genderless Pokemon
Without this, genders will always default to '' and never to 'N'
* July PMOTM Initial Commit
* Clean up conditions.ts and items.ts
* Clean up abilities.ts
* Clean up pokedex.ts
* Clean up moves.ts Pt. 1
* just changing shelter (i keep losing track of lines)
* Clean up moves.ts Pt. 3 (lost track of lines again)
* Clean up moves.ts Pt. 4
* Clean up moves.ts Pt. 5
* Final clean up Pt. 1
* Final clean up Pt. 2
* Final clean up Pt. 2.1
* Final clean up Pt. 3
* desert storm fix
* desert storm "fix"
* Add VaporeMons to teams.ts
* Remove gen9fe from formats.ts
* Adding VaporeMons Randbats Sets Pt. 1
* Fix Ditto
* Add Randbats Sets Pt. 2
* Add Randbats Sets Pt. 3
* Shorten Garganacl's line
* Fix Typo
* Add Randbats Sets Pt. 4
* Fix error
* Final Randbats Sets
* Minor bugfixes
* Remove Speed-boosting Natures
* Extremely Minor Fixes
* Fix Vaporemons issues
* Fix style errors
* Fix Death Aura & Fair Fight not ending
* Remove test format and Fusion Evolution
* Give Skarmory Sledgehammer Blow
* Fix Illusion's flags
* Add Illusion Level Mod
---------
Co-authored-by: Meijer,L. (Lucas) <l.meijer6@students.uu.nl>
* Add Pick Team rule
* Make Team Preview and Pick Team mutually exclusive
* Automatically apply rule if Picked Team Size exists without preview
* Remove mutually exclusive part
* Move teamsize to start action
* June PMOTM Initial Commit
* Initial Cleanup Pt. 1
* Initial Cleanup Pt. 2
* Initial Cleanup Pt. 3
* Initial Cleanup Pt. 4
* Fix Trailing Spaces
* Fix Indents
* Fix initial style errors
* One more small fix
* Initial random-teams.ts creation
* Shorten Line
* Add Egg Groups
* More cleanup Pt. 1
* More cleanup Pt. 2
* Remove assertion
* Final Ability Cleanup for now
* Bring scripts.ts to modern conventions
* Fix indent and line length
* Temporarily change unit tests to not bug out
* Temporarily change unit tests to not bug out
* Add format, fix style
* Fix two more minor errors
* Fix Random Teams Error
* Change opening message
* Add Sprite Viewer
* fix 696 indents at the same time
* Remove fix for local-only bug
* Move Bad 'n Boosted to challengeable OMs
* Update config/formats.ts
---------
Co-authored-by: Meijer,L. (Lucas) <l.meijer6@students.uu.nl>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
* Activate Wonder Guard if the target is immune
* Lint
* Correctly check for immunities
* Refactor runImmunity
* Change all move.type to move
For example, this fixes Thousand Arrows vs Air Ballon Terapagos. Tera Shell was not activating.
* Remove unnecessary cast
* Add CCAPM Pt. 1
* Add CCAPM Pt. 2
* Add CCAPM Pt. 3
* Add CCAPM Pt. 4
* Add CCAPM Spreadsheet Broadcast
* Last second set change
* Add searchShow: false,
"Standard NatDex" is very weird compared to how OMs usually work.
See "TierShift Mod" and "Godly Gift Mod". NatDex now gets its own mod,
which can be mixed into any other format, instead of needing to start
with NatDex.
This would make Min Source Gen overriding annoying, so it now defaults
to the current gen in Gen 9+, if Obtainable is set and +Past isn't. So
now you don't need to manually set Min Source Gen to enforce Obtainable
in Gen 9.
* Make "All Pokemon" rules more convenient
Previously, "+All Pokemon" did nothing except override "-All Pokemon",
which switched from a default-allow to default-deny system.
They still do that, but they now also override all previous pokemon
bans/unbans. This makes it easier to replace a banlist/whitelist
from an inherited ruleset without needing to reverse every previous
ban/unban.
This also adds an error if you use `+All Pokemon` in a ruleset where
it doesn't do anything.
Fixes#10772
I was deceived by `crypto.getRandomValues` working in the repl, but
that's just because the repl has the Node standard library
pre-imported.
Anyway, this new code should work correctly in all of Node 18, newer
Node, and the browser.
boolean -> number and number -> string should be explicit. Probably
string -> number should be, too, but I'm not ready to turn on the lint
option yet.
This was supposed to be part of the big ESLint refactor but I forgot
to push it. <_<
ESLint has a whole new config format, so I figure it's a good time to
make the config system saner.
- First, we no longer have separate eslint-no-types configs. Lint
performance shouldn't be enough of a problem to justify the
relevant maintenance complexity.
- Second, our base config should work out-of-the-box now. `npx eslint`
will work as expected, without any CLI flags. You should still use
`npm run lint` which adds the `--cached` flag for performance.
- Third, whatever updates I did fixed style linting, which apparently
has been bugged for quite some time, considering all the obvious
mixed-tabs-and-spaces issues I found in the upgrade.
Also here are some changes to our style rules. In particular:
- Curly brackets (for objects etc) now have spaces inside them. Sorry
for the huge change. ESLint doesn't support our old style, and most
projects use Prettier style, so we might as well match them in this way.
See https://github.com/eslint-stylistic/eslint-stylistic/issues/415
- String + number concatenation is no longer allowed. We now
consistently use template strings for this.
* Fix move validation involving prevo-only moves
https://www.smogon.com/forums/threads/bug-report-validator.3759104/
This is something that should've always been in #10574. Setting setSources.babyOnly becomes useless here because it eventually gets set after validating a move is complete.
* Actually fix DW