Tempoanon
87b7122b60
[P2] Illuminate ignores evasion ( #4781 )
2024-11-03 21:47:07 -05:00
NightKev
5e2dfa975a
Rename PokemonTurnData
's damageDealt
and currDamageDealt
( #4784 )
2024-11-03 14:09:28 -08:00
muscode
f0ae36de6c
[Ability] Implement Wimp Out and Emergency Exit ( #4701 )
...
* implement Wimp Out/Emergency Exit
* fixed test
* fixed weather bug
* Added nightmare interaction to Wimp Out following bug fix
* refactored and added postdamageattr
* bug fixes
* added confusion test back (skipped)
* updated applyPostDamageAbAttrs to applyPostDamage
* fix external func name
* fixed syntax inconsistency
* updated PostDamageForceSwitchAttr -> PostDamageForceSwitchAbAttr
* Modify `wimp_out.test.ts`
* remove extra comment
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* remove extra comment
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update tsdocs
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* remove comment
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* remove comment
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* fix tsdocs
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* fix tsdocs
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* fix tsdocs
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* fix tsdocs
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* fix whitespace
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* make getFailedText public
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* make switchOutLogic public
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* make getSwitchOutCondition public
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* make getFailedText public
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* make applyPostDamage public
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* simplify if statement
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* add public override to applyPostDamage
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* fixed nested if issue, remove trapped tag removal
* add fix for multi hit move
* added multi-lens logic
* moved applyPostDamageAbAttrs to pokemon.damage, added check for multi lens in pokemon.apply
* added source to damageAndUpdate and applyPostDamageAbAttrs, added Parental Bond logic + test, put applyPostDamageAbAttrs back in damageAndUpdate
* simplify multi hit check
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Minor formatting changes
* Update src/data/ability.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* moved and renamed shouldPreventSwitchOut, rewrote tests to account for U-turn changes, fix syntax error
* Move comment slightly
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
2024-11-03 01:04:20 -05:00
Mumble
f16309fd06
[P2] Plus, Minus, Beads/Sword of Ruin not ignorable. Shield Dust and Armoa Veil ignorable ( #4778 )
...
Co-authored-by: frutescens <info@laptop>
2024-11-03 01:22:40 -04:00
Mumble
70ddc29e86
[Refactor] Refactor data/pokemon-species.ts ( #4054 )
...
* Setting species-variables to read only
* set generations to protected
* formIndex set to protected
* quick fix
* typedocs fixes
* get / set generation
* wait
* Use get/set for formIndex too
* Fix misplaced line
* Replace a couple `!!` with default params
---------
Co-authored-by: frutescens <info@laptop>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
2024-11-02 23:11:24 -04:00
innerthunder
1474f8cf14
[Refactor] Add options
param interface for MoveEffectAttr
( #4710 )
...
* Optional parameter interfaces for `MoveEffectAttr` and `StatStageChangeAttr`
* Update docs + Diamond Storm typo
* Apply suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Make move effect trigger specification optional
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-11-02 13:05:33 -04:00
Mumble
1659f57262
[P2] Camouflage now considers Terrains first ( #4761 )
...
* the fix... will maybe write a test later
* ughh
* made a test
* moved aorund function
* Update src/test/moves/camouflage.test.ts
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
* lalal
---------
Co-authored-by: frutescens <info@laptop>
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
2024-11-02 12:48:10 -04:00
innerthunder
80a8c659ee
[P2] Add "no switch-in" fail condition for Shed Tail and Baton Pass ( #4777 )
2024-11-02 12:47:08 -04:00
Moka
c2d24d6e93
[Bug] Take weight into account when getting the tier of a modifier ( #4775 )
...
* disable timed events in tests
* Take weight into account when getting the tier of modifiers
* Apply suggestions from code review
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>
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
2024-11-02 11:55:22 -04:00
AJ Fontaine
8169760e1e
[Bug] Prevent wild mons fleeing with U-turn, Flip Turn, Volt Switch ( #4643 )
...
* Wild mons can't flee with U-turn
* Update src/data/move.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-11-01 21:21:45 -07:00
PigeonBar
5b9dfe17ad
[P2] Fix Own Tempo Rockruff not being able to evolve ( #4762 )
2024-10-30 13:15:11 -04:00
PrabbyDD
afe6d2900d
[P2] Fix for Speed Boost is Activated on the Turn a Pokemon is Switched In, and When a Pokemon Fails to Escape #4353 ( #4676 )
...
* fixing speed boost for pokemon being switched in and for if failed escape
* adding unit tests
* adding failed run away test case
* adding failed run away test case modification
* refactoring solution to be more consistent with coding style
* more fixes for consistency
* more fixes for consistency
* adding new AbAttr in abiliity.ts for posterity
* removing uneccesary variables
* fixing a merge conflict
2024-10-29 17:38:33 -04:00
innerthunder
fd1aa41d09
[P2] Fix AI targeting allies with status effect moves ( #4717 )
2024-10-29 17:32:07 -04:00
NightKev
921d4fa18c
[P2] Chloroblast & Struggle should not recoil if the move failed ( #4719 )
...
* Chloroblast & Struggle should not recoil if no damage was dealt
* Protect against missing move entry
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
---------
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
2024-10-29 17:31:37 -04:00
AJ Fontaine
f9fe59239e
[TMs] Remove Sacred Sword, add Secret Power TM, fix Reflect compatibility ( #4713 )
2024-10-29 17:31:02 -04:00
Blitzy
65269f935f
[Balance] Change Bouncy Bubble's Attributes ( #4757 )
...
* Change Bouncy Bubble's Healing
* Move comment to what is custom about Bouncy Bubble
---------
Co-authored-by: damocleas <damocleas25@gmail.com>
2024-10-29 16:19:42 -04:00
NightKev
13ff80fb95
Mark Last Respects as partial ( #4749 )
2024-10-29 18:59:28 +01:00
Mumble
fb2d3e45d6
[Move][Ability] Fully Implement Forest's Curse / Trick Or Treat / Mimicry ( #4682 )
...
* addedType variable
* basic mimicry implementation
* eslint
* rage
* quick change
* made files
* added mimicry activation message
* test for moves done
* hahahhaha
* done? for now?
* laklhaflhasd
* Apply suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* time to start... ughhh
* reflect type
* Added new message
* Update src/field/pokemon.ts
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
* Update src/data/ability.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* added overrides
* some checks
* removed comments
* Apply suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
---------
Co-authored-by: frutescens <info@laptop>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
2024-10-29 10:10:37 -07:00
PrabbyDD
3241332a3c
[Ability] Implementing Friend Guard ( #4718 )
...
* implementing friend guard ability
* 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/test/abilities/friend_guard.test.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/field/pokemon.ts
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* more tests and fixing other issues
* more tests and fixing other issues
* Update Friend Guard test with damage mocks
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: innerthunder <brandonerickson98@gmail.com>
2024-10-28 13:49:04 -07:00
innerthunder
b4cc9d7892
[Hotfix] Fix crash when Mist would block a stat drop ( #4746 )
...
* Fix crash when Mist would block a stat drop
* Bump version
* Bump version (again)
2024-10-28 14:02:10 +01:00
PigeonBar
dfb42e44a6
[Hotfix] Fix Eternatus egg tier ( #4734 )
2024-10-27 04:04:57 +00:00
Frederico Santos
51b2a4d7fe
Something ( #4728 )
...
* [Feature] Add event-based friendship multiplier and update TrainerConfig for event modifiers
* [UI][Dev] Improve event banner placement (#4726 )
* [ui] automatically place event banner and timer in the title screen
* add new event banner
* ugh
* [Refactor] Clean up TrainerConfig and remove unused timed event
---------
Co-authored-by: Moka <54149968+MokaStitcher@users.noreply.github.com>
2024-10-26 17:14:17 +01:00
Smewkie
61cf937cab
[Balance] Ferroseed HA
...
Ferroseed HA
2024-10-26 00:38:12 +01:00
PigeonBar
f87ac116fa
[Beta] Stop Transform giving copied moves negative fractional ppUp
( #4722 )
...
* [Beta] Stop Transform giving copied moves negative fractional `ppUp`
* Remove some bangs/etc
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-10-25 19:34:40 -04:00
innerthunder
414e0a5447
[Balance] Change Tyrogue to move-based evolutions ( #4694 )
2024-10-23 23:17:55 -07:00
Moka
a13550ec44
[Balance][ME] Various ME Balance changes ( #4700 )
...
* balance changes and updates to various MEs
* fix import to new item
* fix import to new item
* Update src/data/mystery-encounters/utils/encounter-pokemon-utils.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/phases/select-modifier-phase.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/modifier/modifier.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/modifier/modifier.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* revert item atlas changes
* eslint
* revert 'revert item atlas'
* update locale repo to latest commit
* Fix fiery fallout missing argument
* [balance] Training session ME does not update Seen/Defeated GameStats
* [balance] update Weird Dream ME maximum spawn wave
* [ME] update CombinationRequirements to allow AND or OR combinations
* refactor: CombinationPokemonRequirement `.Some()` and `Every()`
* chore: rename `orRequirements` to `requirements`
* fix: returns of `Some()` and `Any()`
* apply `Some()` / `Any()` pattern to `CombinationSceneRequirement` too
* revert 'offer you can't refuse' giving Silver Pokeball'
* Apply code review suggestions
* [me] Weird Dream: apply same old gateau logic to team in options 1 and 2
---------
Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
Co-authored-by: ImperialSympathizer <110984302+ben-lear@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: innerthunder <brandonerickson98@gmail.com>
2024-10-23 21:46:57 +02:00
schmidtc1
958d79140c
[P2] Fixes Transform/Imposter not updating type/battle stat changes immediately; set move PP to 5 when transforming ( #3462 )
...
* Adds updateInfo to transform move/ability, mirrors Transform functionality in Imposter
* Implements functionality for reducing pp to 5 or less for each move when transforming
* Refactors to async/await pattern, adds back removed anims/sounds from last commit
* Eslint fix attempt
* Update src/data/ability.ts
per DayKev's suggestion
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Merge and fix conflicts
* Adds unit tests for pp-change with transform/imposter
* Updates to consistency in syntax/deprecated code
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-10-23 11:12:53 -04:00
innerthunder
03025b2674
[P2] Fix various charge move bugs ( #4595 )
...
* Add charge move classes and phase
* Integrate `MoveChargePhase` in battle phase sequence
* Fix Protean + charge move interaction
* Fix effect chance applying to semi-invulnerability
* Remove `ChargeAttr` and fix ChargeAnim loading
* Restore move history entry for charge phases
* Gravity now cancels Fly, etc. after charge turn
* Dig integration tests
* Fly integration tests
* Dive integration test + fix Dive in Harsh Sun bug
* Solar Beam integration tests + `CHARGING` tag fixes
* Fix dive test
* Electro Shot integration tests
* fix import in MoveChargePhase
* Electro Shot Multi Lens test
* Geomancy integration tests
* Fix duplicate move queue
* Update import
* Docs + Fix Meteor Beam being boosted by Sheer Force
* Fix volt absorb test
* Apply PigeonBar's suggested move-phase changes
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
* Make Electro Shot Sheer Force boosted again
* Apply PigeonBar's feedback pt. 2
* Apply suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Fix mistimed/dupe showMoveText and leftover TODO
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
2024-10-23 11:08:40 -04:00
bjparker1226
a0baf89297
[P2] Fix dark deal reducing transformed Pokemon's held item stack to 1 ( #4707 )
2024-10-23 11:04:37 -04:00
Blitzy
0fe57b44b5
[Balance] Add Exclusive Moves from Prior Evolutions via Memory Mushroom ( #4681 )
2024-10-22 18:13:10 -07:00
damocleas
96e5f2d763
Starmobile Stat Adjustments ( #4704 )
...
Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
2024-10-22 18:07:28 -07:00
NightKev
181f59882a
[P2] Fix Early Bird ( #4632 )
...
* Fix Early Bird, add tests
* Update tsdocs for Early Bird's `AbAttr`
Rename `turnCount` to `toxicTurnCount` and
`turnsRemaining` to `sleepTurnsRemaining` in `status-effect.ts`
* Fix Toxic Orb test
* Redundant code :despair:
* Fix status override to set the number of sleep turns
2024-10-22 12:37:13 -04:00
Mason S
7066a15ceb
[Refactor] Added BattlerTagLapseType.AFTER_HIT
( #3655 )
...
* [Refactor] Added ON_GET_HIT BattlerTagLapseType
Adjusted BeakBlastChargingTag and ShellTrapTag to use new lapse type
Adjusted MoveEffectPhase to now lapse all tags with the ON_GET_HIT lapse type
* [Refactor] Added ON_GET_HIT BattlerTagLapseType
Adjusted BeakBlastChargingTag and ShellTrapTag to use new lapse type
Adjusted MoveEffectPhase to now lapse all tags with the ON_GET_HIT lapse type
* Fix nits
* Rename `ON_GET_HIT` to `AFTER_HIT`
Change `isOpponentTo` to `isOpponent`
* Fix a couple minor nits
* Remove single-use function
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-10-21 23:53:00 -07:00
innerthunder
c2eb9de9df
[Ability] Partially Implement Infiltrator (does not work with mist) ( #4636 )
...
* Implement Infiltrator
* Integration tests + Infiltrator is (P) again
* Fix screen tests
* Fix `hitsSubstitute`
* docs for Infiltrator attr
2024-10-21 21:41:25 -04:00
PrabbyDD
467841d167
[P2] Nightmare triggers at turn end instead of after move ( #4702 )
2024-10-21 21:33:41 -04:00
NightKev
f7797603a1
[P2] Fix oversight where hazards cannnot affect Pokemon that set it ( #4693 )
...
Fixes #935
2024-10-21 11:03:12 -04:00
MokaStitcher
e6c06d57be
[P All][Bug] Various ME bugfixes (copy) ( #4695 )
...
* Mystery Encounter bugfixes
* more ME bug fixes
* update allowed pokemon in ME requirements
* some unit test cleanup and general tidying
* fix null exception on isBattleMysteryEncounter
* clean up tsdocs and fix pokemon hasAbility check
* fix double battle crash in challenge mode with a single eligible pokemon
* apply suggestions from PR#4619's code reviews
* revert fix for Keldeo crashes + implement fix suggestion from PR #4619
* fix session migration for PokemonCustomData
* prevent test failure due to keldeo fix
---------
Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
2024-10-20 22:55:07 +01:00
NightKev
39abac65be
Add eslint rule to enforce indenting of case
statements ( #4692 )
2024-10-20 02:44:36 +01:00
Mumble
2f212f52eb
fixed effectChanceOVerrride location + removed ability tags ( #4677 )
...
Co-authored-by: frutescens <info@laptop>
2024-10-16 23:31:30 -07:00
Madmadness65
afebecd43c
[P2 Bug] Fix pool entry for Jynx not using baby species ( #4675 )
2024-10-16 17:16:10 -05:00
NightKev
d92d63e81f
[Misc] Restore info comment that was accidentally removed ( #4674 )
2024-10-16 16:10:19 -04:00
AJ Fontaine
d5fee37868
[Refactor] Add friendship related constants ( #4657 )
...
* Add constants for friendship
* Absolute path in battle-scene.ts
* Address nits
* Apply negative to constant
2024-10-16 14:55:23 -04:00
PigeonBar
72c08e5cfd
[Refactor] Clean up commented safari zone code from #4661 ( #4671 )
2024-10-16 11:09:48 -04:00
Mumble
2caa09f246
[Move] Fully Implement Secret Power ( #4647 )
...
* initial work
* move go
* biomes for damo
* more cleanup
* added effect for space
* test
* balance change 1
* i'm silly
* fixed effect cahnce
* secret power atr
* Apply suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* got tests to work + added final balance biomes
* added documentation
* Apply suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/data/move.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
---------
Co-authored-by: frutescens <info@laptop>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-10-16 10:38:12 -04:00
PigeonBar
c6ec01958c
[Bug] Fix for Expert Breeder's Pokemon being invisible and IV scanner in safari zone ( #4661 )
...
* [Bug] Potential fix for Expert Breeder's Pokemon being invisible
* PR Feedback
* Consistency with await
2024-10-16 10:31:32 -04:00
PigeonBar
50ff6e703a
[P1 Bug] Fix several Destiny Bond crashes ( #4665 )
...
* [P1 Bug] Fix several Destiny Bond crashes
* PR Feedback
2024-10-16 10:30:38 -04:00
Madmadness65
c04d81bd65
[Ability] Allow Power Construct to transform 10% PC Zygardes ( #4626 )
...
* Allow Power Construct to transform 10% PC Zygarde
* Add additional test for 10% PC Zygarde
2024-10-15 15:02:30 -04:00
innerthunder
1966335627
[Refactor] Add type inference and support for simulated calls to ArenaTag.apply
( #4659 )
...
* Add simulated support for Arena Tag application
* Add type inference to ArenaTag.apply
* Fix screen tests
* back to `any` again lol
* fix missing spread syntax (maybe)
* updated docs
* named imports for `Utils`
2024-10-15 13:13:54 -04:00
Blitzy
bb98bc2f8e
[Balance] Evil Team Update / Penny Adjustments ( #4577 )
...
* Update trainer-config.ts
* Update trainer-config.ts
* Update trainer-config.ts
* Fixed Flare Grunt's having Noivern > Noibat
* Revert Inkay change, Change Penny
* Give Admin aces canonical genders
* Update trainer-config.ts
* Update trainer-config.ts
---------
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: damocleas <damocleas25@gmail.com>
2024-10-15 02:17:20 -07:00
cadi
e7a4d4055f
[Move] Implement Power Trick ( #2658 )
...
* add `PowerTrickTag`
* modify getStat() with PowerTrickTag
* implement `PowerTrickAttr`
* add unit test
* enhance docs and tag apply logic
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-10-14 12:39:34 -07:00