pokerogue/src
Sirz Benjie 8afedc33d7
[Refactor] [Ability] Ab attr apply type safety (#6002)
* [WIP] Refactor ability attribute apply args

* [WIP] update ability signatures

* Update callsites in pokemon.ts

* Update callsites in moves.ts

* Update abattr callsites in move-phase

* Update abattr callsites in battler-tags

Also removed stat drop ability application from cancelling ME stat boost effects

* format with biome and remove cancelled from weather lapse

* Update abattr callsites in MEP

* Update callsites in turn-start-phase

* Update abAttr callsites in misc phases

* Remove latent test functionality

* update ability attribute callsite in shield dust test

* update abattr callsite in winstrate challenge encounter

* Fix some tests to mock proper methods

* Remove improper condition in mimicry's ability application

* Fix improper simulated check in moody's apply method

* Pass source to postApplyDamage in pokemon.ts

* [wip] fix cud chew tests

* Make cud chew consumption not subclass postTurnAbAttr

* Fix regression in flower veil

* Update trySetStatus test in pokemon to respect new return value for undefined

* Remove empty, unused file

* Fix blockCrit method broken in merge

* Fix unnecessary attr type cast in move phase

* Address typing issue in safeguard test

* Improve documentation and get rid of ts-expect-error directive

* Minor comment/TSDoc updates and fixes

* Apply suggestions from code review

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* Apply suggestions from code review

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-06-22 18:23:08 -07:00
..
@types [Refactor] [Ability] Ab attr apply type safety (#6002) 2025-06-22 18:23:08 -07:00
configs/inputs [Misc] Removed cases of a ? true : false and useless super calls from subclasses (#5943) 2025-06-06 17:00:09 -07:00
data [Refactor] [Ability] Ab attr apply type safety (#6002) 2025-06-22 18:23:08 -07:00
enums [Refactor] Fix issues with "last move selected" vs "used" (#5810) 2025-06-15 10:52:44 -07:00
events [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
field [Refactor] [Ability] Ab attr apply type safety (#6002) 2025-06-22 18:23:08 -07:00
global-vars [Refactor] Merged interfaces/ into @types/; removed runtime orphan modules 2025-06-07 17:28:01 -07:00
modifier [Refactor] [Ability] Ab attr apply type safety (#6002) 2025-06-22 18:23:08 -07:00
phases [Refactor] [Ability] Ab attr apply type safety (#6002) 2025-06-22 18:23:08 -07:00
pipelines Merge branch 'beta' into minor-1.9.6 2025-06-18 18:27:37 -07:00
plugins [Dev] Update Biome to 2.0.0 (#6004) 2025-06-20 23:24:11 -07:00
sprites [Dev] Update Biome to 2.0.0 (#6004) 2025-06-20 23:24:11 -07:00
system [Refactor] Refactor evo phase (#5735) 2025-06-22 18:11:38 -07:00
typings/phaser [Refactor][UI/UX] Cleanup battle-info ui code (#5696) 2025-05-28 17:29:03 +00:00
ui [Dev] Update Biome to 2.0.0 (#6004) 2025-06-20 23:24:11 -07:00
utils [i18n] Large Numbers Abbreviations Translation (#6021) 2025-06-22 17:11:16 -06:00
account.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
battle-scene.ts [Refactor] [Ability] Ab attr apply type safety (#6002) 2025-06-22 18:23:08 -07:00
battle.ts [Dev] Update Biome to 2.0.0 (#6004) 2025-06-20 23:24:11 -07:00
constants.ts [Refactor] Remove circular dependencies (part 4) (#5964) 2025-06-11 19:42:04 -07:00
game-mode.ts [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
global-event-manager.ts [Misc] AFD Event (#5596) 2025-03-31 15:11:01 -07:00
global-scene.ts [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
inputs-controller.ts [Dev] Update Biome to 2.0.0 (#6004) 2025-06-20 23:24:11 -07:00
loading-scene.ts [Refactor] Remove circular dependencies (part 4) (#5964) 2025-06-11 19:42:04 -07:00
main.ts [Refactor][UI/UX] Cleanup battle-info ui code (#5696) 2025-05-28 17:29:03 +00:00
messages.ts [Refactor] Add methods isPlayer and isEnemy to reduce circular imports 2025-06-07 17:44:58 -07:00
overrides.ts [Test] Reworked crit override to allow for forced crits (#5738) 2025-06-16 05:36:09 -07:00
phase-manager.ts [Dev] Update Biome to 2.0.0 (#6004) 2025-06-20 23:24:11 -07:00
phase.ts [Refactor] Decouple phase system from battle-scene (#5953) 2025-06-07 17:59:30 -07:00
scene-base.ts [Refactor] Create utility function coerceArray (#5723) 2025-06-12 21:30:01 -07:00
starting-wave.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
timed-event-manager.ts Fix merge issue 2025-06-18 18:30:22 -07:00
touch-controls.ts [Dev] Update Biome to 2.0.0 (#6004) 2025-06-20 23:24:11 -07:00
tutorial.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
ui-inputs.ts [Dev] Update Biome to 2.0.0 (#6004) 2025-06-20 23:24:11 -07:00
vite.env.d.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00