pokerogue/test/arena
Sirz Benjie 54ce58411b
Some checks are pending
Deploy Beta / deploy (push) Waiting to run
Biome Code Quality / Run linters (push) Waiting to run
Tests / Run Tests (push) Waiting to run
[Bug] Fix forced switch bugs in enemy partner trainer battles (#5644)
* Add isPartner method to trainer class

* Ensure force switches cannot pull pokemon from the wrong trainer

* Add override for battle type

* Fixup tests and broken assumptions

* Make move fail override semi-invuln check

Bandaid fix because move effect phase does not allow for the move to fail if all of its conditions fail

* Restore overrides

* Apply kev's suggestions from code review

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

* Fix illusion test battle type invocation

* Update struggle and healer tests to use battleStyle

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-04-18 09:35:46 +00:00
..
arena_gravity.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
grassy_terrain.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
weather_fog.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
weather_hail.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
weather_sandstorm.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
weather_strong_winds.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00