Dean
b33d95d27d
[Bug][Refactor] Fix Unsuppressable Abilities being Unreplaceable ( #5547 )
...
* Switch unsuppressable to unswappable
* Update test
* Change suppress/replace/copy flags
* Make flower gift unreplaceable
* Make forecast unreplaceable
* No holding hands
* [Sprite] Reduce Mystical Rock sprite's size (#5570 )
* Updating the size to be smaller
* Update item atlas
* Fix Malicious Armor missing outline
Noticed when exporting atlas that the item sprite broke
---------
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: damocleas <damocleas25@gmail.com>
* Switch unsuppressable to unswappable
* Update test
* Change suppress/replace/copy flags
* Make flower gift unreplaceable
* Make forecast unreplaceable
* No holding hands
* Apply suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Remove trivial type annotations
---------
Co-authored-by: Unicorn_Power <189861924+Unicornpowerstar@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: damocleas <damocleas25@gmail.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-03-30 05:37:35 +00:00
Sirz Benjie
66bc83fce4
[Ability] Flower Veil implementation ( #5327 )
...
* [WIP] flower veil implementation
Signed-off-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
* Remove promises
Signed-off-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
* Fully implement Flower Veil
Signed-off-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
* Fix ally interaction for battler tag
* Condense and cleanup test files
* Remove a console.log message
* Remove stray excess import
* Update doc comments and apply kev's suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Remove duplicated test
---------
Signed-off-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-03-29 21:32:35 -07:00
schmidtc1
27a1638243
[Bug] Fix interactions for Pollen Puff Parental Bond, Multi-Lens, Grip Claw Ally Healing ( #5550 )
...
* Checks for hit result status on Grip Claw application
* Adds a boolean check for the Pollen Puff edge case in canBeMultiStrikeEnhanced
* Adds parental bond test
* Adds grip claw and multi lens tests
2025-03-29 18:25:34 +00:00
NightKev
25b9fa7933
[Biome] Add "no unused imports" rule ( #5580 )
...
* Apply Biome to files
* Add `lint/correctness/noUnusedImports` rule
* Apply rule
* Remove obsolete eslint directives
* Fix variable naming in `game-speed.ts`
2025-03-29 10:24:23 +00:00
Sirz Benjie
fac20ca97a
[Ability] Fully implement Flower Gift and Victory Star ( #5222 )
...
* Fully implement Flower Gift and Victory Star
* Fully implement Flower Gift and Victory Star
* Update src/field/pokemon.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/field/pokemon.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/data/ability.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/data/ability.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Accept suggested change
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Accept suggested change
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/data/ability.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/data/ability.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/data/ability.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/field/pokemon.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Fix check for ignore_abilities move flag
* Fix missing argument to getBaseDamage in getAttackDamage
* Fix merge conflict due to same changed import line
* Fix call to getAttackDamage that was reset after merge
* Update calls to getEffectiveStat
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-03-28 22:24:19 -05:00
Sirz Benjie
35e733e87a
[Test] [Refactor] [GitHub] Enable no isolate for vitest ( #5566 )
...
* Reuse global scene between tests
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
* Add missing each method to mockContainer
* Fix select-modifier-phase test
* Sanitize overrides before tests
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
* Sanitize overrides before tests
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
* [WIP] fix things
* Fix tests not working with --no-isolate
* Update npm tests to use no isolate
* Update test-shard-template
* Update package.json
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
---------
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-03-28 17:30:38 -04:00
Amani H.
6316218bd3
[Item] Add Weather and Terrain Extender Item ( #4799 )
...
* [Item] Add Weather and Terrain Extender Item
* Add Documentation
* Clean Up Unit Tests
* Add Weight Function
* Include Suggestions
2025-03-26 22:40:46 -04:00
NightKev
db850c79cd
[Refactor] Moveset arrays can no longer hold null
values ( #4919 )
...
* Pokemon movesets no longer allow `null` values
* Clean up all the bangs caused by movesets allowing `null`
* Pokemon movesets no longer allow `null` values
* Clean up all the bangs caused by movesets allowing `null`
* Fix merge issues
* Remove various unnecessary `?`
* Apply biome
* Fix `global-trade-system-encounter.ts`
* Fix merge issue
* Remove unnecessary parentheses
* Remove missed `?`
* Match formatting of `pokemon.ts`
2025-03-26 19:12:54 -07:00
Dean
dbc8ac26af
[Bug] Fix #5422 Neut. Gas and Primal Weather Persist After Flee ( #5496 )
...
* Add applyPreLeaveFieldAbAttrs call to AttemptRunPhase
* Update tests
2025-03-23 23:27:20 +00:00
José Serrado Marques
1e876ec595
[BUG] fixes #5472 - transform on reload ( #5508 )
...
* [BUG] fixes #5472 - transform on reload
* Fix the bug where transformed pokemon failed to load sprite on reload if it was not the base form
* Now properly loads the transformed sprite assets during summon phase
2025-03-23 12:07:14 -07:00
Dean
b298138157
[Bug] Fix NG crash when ability is reactivated for a Pokemon off the field ( #5478 )
2025-03-11 03:20:00 +00:00
Dean
929392fe8b
[Bug] Fix #5358 Abilities that Redirect Moves Consider Move-Typings before Ability Modifiers ( #5464 )
2025-03-11 03:02:51 +00:00
Sirz Benjie
408b66f913
[Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter ( #5495 )
...
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-03-09 14:13:25 -07:00
Sirz Benjie
60a4db7059
[Refactor] Refactor moves.ts part 1 ( #5420 )
2025-03-07 19:10:29 -06:00
Dean
905fec92e9
[Bug] Fix Neutralizing Gas not Deactivating on Faint and Capture ( #5423 )
2025-02-26 22:39:08 +01:00
Dean
870bff0e6e
[Bug][Ability] Fix Neutralizing Gas interactions #5381
...
* Add neutralizing gas arena tag
* Add PostSummonAddArenaTagAbAttr
* Add PreLeaveField attr for neutralizing gas
* Remove old SuppressFieldAbilitiesAttr
* Fix ability suppression logic
* Add basic tests
* Reapply onGain abilities when neutralizing gas ends
* Untodo ability remval test
* Add more tests
* Modify gastro acid to call onLose attributes when suppressing
* Properly cancel abilities on switch in
* Add documentation
* Remove partial designation
* Update locale key usage
* Reactivate the last source's other abilities when it becomes the last remaining
* Fix loop vars
* Add access modifiers for SuppressAbilitiesTag
* Minor changes
* Move test to reflect new location
* Remove promises from abattr function signatures
2025-02-25 18:38:17 -05:00
Sirz Benjie
a51a504155
[Test] Move test folder out of src ( #5398 )
...
* move test folder
* Update vitest files
* rename test/utils to test/testUtils
* Remove stray utils/gameManager
Got put back from a rebase
2025-02-22 22:52:07 -06:00