* 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
* Info commands: Fix crash when using /data with Tier Shift Mod
Fixes a crash that occurred when using the `/data` command (or its aliases like `/dt`) with a format that includes the "Tier Shift Mod" rule.
### The Bug
When users tried to view Pokémon data in a format with Tier Shift Mod, the command would crash with:
```TS
TypeError: Cannot read properties of undefined (reading 'has')
at Object.onModifySpecies (/home/ps/main/data/rulesets.ts:2260:45)```
### Root Cause
The info command was calling `format.onModifySpecies` with a mock Battle context that was missing the `ruleTable` property. The Tier Shift Mod's `onModifySpecies` function needs to check `this.ruleTable.has("standardnatdex")` to determine whether to use National Dex tiers.
### The Fix
Added the missing `ruleTable` property to the mock Battle context in `server/chat-commands/info.ts`. The mock context now includes:
- `dex`
- `clampIntRange`
- `toID`
- `ruleTable` (newly added)
This ensures that any format modifier that needs to access the rule table won't crash when called from the data command.
* Use optional chaning instead of constructing a full rule table.
* Fix: formatting
* More formatting
* formatting due to merge
* Update data/rulesets.ts
* ESLint: Resolve "Type boolean trivially inferred from a boolean literal, remove type annotation"
---------
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>