Brandon Lourenco 89e4f30867
Roost suppresses the user's Flying-type rather than remove and re-add it. Added tests for EFFECT_ROOST. (#3258)
* Fixed Roost clearing type3 when used by a pure Flying-type. (Gen 5+)

* Created a test file for Roost.

* Marked tests as TODO for now.

* Added more tests for HP healed and type changing.

* Created a function to handle Roost's Flying suppression when getting a battler's type. Added more tests.

* Added test for not-yet-aquired Flying-type. Fixed/rewrote some other tests.

* Now using GetBattlerType() in most relevant places. Fixed some tests.

* Added tests for interactions between Roost and Delta Stream, type-changing effects, Grassy Terrain healing, Levitate, Air Balloon, Magnet Rise, and Telekinesis.

* Added test for interaction between Roost and Reflect Type.

* Gen 4 tests merged with Gen 5+ tests.

* Removed errant space.

Co-authored-by: LOuroboros <lunosouroboros@gmail.com>

---------

Co-authored-by: LOuroboros <lunosouroboros@gmail.com>
2023-10-05 09:19:29 +02:00
..
2020-09-13 06:30:55 -03:00
2022-07-25 14:59:14 -04:00
2022-10-27 11:26:09 -03:00
2022-07-29 21:27:39 -04:00
2023-09-26 07:28:18 -03:00
2023-08-04 14:17:28 -04:00
2023-08-04 14:17:28 -04:00
2022-08-19 17:05:22 +01:00
2020-10-01 17:07:12 -05:00
2023-08-03 15:55:06 -04:00
2019-09-17 16:50:17 -05:00
2022-05-17 14:00:02 -04:00
2023-08-31 14:30:13 -04:00
2022-09-02 21:53:44 -04:00
2023-08-10 01:42:18 -04:00
2023-08-10 01:42:18 -04:00
2023-05-25 15:09:16 -04:00
2023-02-26 18:43:15 -03:00
2022-12-03 17:29:02 -05:00
2022-05-18 13:03:02 -04:00
2023-08-04 14:17:28 -04:00
2020-07-02 05:05:13 -04:00
2022-08-15 15:18:12 -04:00
2022-08-15 15:18:12 -04:00
2022-08-15 15:18:12 -04:00
2022-08-15 15:18:12 -04:00
2022-09-22 15:08:17 -04:00
2022-05-17 14:00:02 -04:00
2023-08-10 01:42:18 -04:00
2022-08-15 20:41:12 -04:00
2022-08-15 15:18:12 -04:00
2023-08-10 01:42:18 -04:00
2023-07-24 19:42:56 +01:00
2023-05-25 15:09:16 -04:00
2022-09-07 14:37:03 +02:00
2023-09-23 17:06:12 -04:00
2020-09-13 06:30:55 -03:00
2022-07-29 10:17:58 -04:00
2023-01-07 11:39:56 -03:00
2020-05-24 08:28:02 -05:00
2023-01-20 12:31:54 -03:00
2023-02-26 18:43:15 -03:00
2022-11-22 02:17:03 -05:00
2022-11-22 02:17:03 -05:00
2022-08-22 08:38:06 +01:00
2023-08-10 01:42:18 -04:00
2020-06-08 17:09:54 -04:00
2022-11-09 15:37:47 -05:00
2023-09-12 13:09:56 -03:00
2023-08-04 14:17:28 -04:00
2023-08-10 01:42:18 -04:00
2021-11-08 19:45:14 -05:00
2022-09-11 14:14:49 -04:00
2023-02-26 18:43:15 -03:00
2023-08-04 14:17:28 -04:00
2023-05-25 15:09:16 -04:00
2022-08-15 15:18:12 -04:00
2022-09-11 14:14:49 -04:00
2022-09-11 14:14:49 -04:00
2023-08-10 01:42:18 -04:00
2023-04-19 11:01:00 -04:00
2022-06-03 21:04:14 +03:00
2022-09-11 14:14:49 -04:00
2021-02-24 11:03:25 -05:00
2022-08-19 15:29:35 +01:00
2022-09-27 17:23:26 -04:00
2022-08-15 15:18:12 -04:00
2023-06-01 15:31:12 -04:00
2022-09-11 14:14:49 -04:00
2023-09-26 08:22:26 -03:00