Eduardo Quezada D'Ottone 1fa9a05470
Convert move flags and bans into GCC bitfields (#2952)
* Slicing moves to new bitfield

* Wind moves to new bitfield

* Two-strike moves to new bitfield

* Forgot to add flagTwoStrikes to battle_moves.h

* Removed "flag" from field names

* FLAG_HIT_IN_SUBSTITUTE and FLAG_THAW_USER

* Airborne moves

* FLAG_POWDER, FLAG_TARGET_ABILITY_IGNORED and FLAG_DANCE

* FLAG_BALLISTIC and FLAG_PROTECTION_MOVE

* Fixed missing uses of MOVE_UNAVAILABLE in battle_ai_util.c

* FLAG_SOUND

* FLAG_DMG_UNDERGROUND and FLAG_DMG_UNDERWATER

* FLAG_DMG_MINIMIZE

* Cleanup

* FLAG_STAT_STAGES_IGNORED

* Updated Pollen Puff's ballistic flag

* FLAG_STRONG_JAW_BOOST and FLAG_MEGA_LAUNCHER_BOOST

* thaw

* FLAG_THREE_STRIKES

* FLAG_IRON_FIST_BOOST

* FLAG_RECKLESS_BOOST

* FLAG_HIGH_CRIT

* Removed empty flags

* Moves that fail when called by Me First + added missing Shell Trap

* Moves that fail when Gravity is active

* Better names for banned fields

* Moves that fail when called by Instruct

* Cleanup

* Contact Moves + Fixed Wandering Spirit skipping contact checks

* Inverted FLAG_PROTECT_AFFECTED so that there's a flag for moves that SKIP protect.

* Simplified B_MOVE_FLAGS configs

* FORBIDDEN_METRONOME

* Renamed hitsPastSubstitute to ignoresSubstitute

* FORBIDDEN_PARENTAL_BOND

* Struggle uncallable by Metronome

* FORBIDDEN_MIMIC

* FLAG_KINGS_ROCK_AFFECTED

* Made a single config for move flags

* Macro for checking move flags

* FLAG_MAGIC_COAT_AFFECTED

* Fixed HasMagicCoatAffectedMove

* FLAG_SNATCH_AFFECTED

* Removed unused EFFECT_FLINCH_MINIMIZE_HIT

* Fixed Stench/King's Rock interaction

* Removed sMovesNotAffectedByStench in favor of checking move effects

* Removed EFFECT_TWISTER, which was a repeat of EFFECT_FLINCH_HIT

* Changed Gen2 configs to less than Gen 3

* FORBIDDEN_SLEEP_TALK

* Cleanup

* Inverted FLAG_MIRROR_MOVE_AFFECTED

* FLAG_SHEER_FORCE_BOOST

* Ordered

* FORBIDDEN_ASSIST and FORBIDDEN_COPYCAT

* Removed TestMoveFlags and TestMoveFlagsInMoveset + flags field

* Fixed Triple Arrows test
2023-07-03 10:01:59 +02:00
..
2019-03-02 03:18:08 -05:00
2022-08-15 15:18:12 -04:00
2022-10-27 11:26:09 -03:00
2022-08-23 11:58:17 +02:00
2020-12-23 13:16:01 -03:00
2018-11-11 16:44:27 +01:00
2023-04-10 14:39:14 +02:00
2023-04-06 20:56:44 +02:00
2018-11-12 14:36:31 +01:00
2019-03-03 16:50:51 -05:00
2018-02-27 20:40:09 +01:00
2023-02-28 00:09:43 -03:00
2021-03-18 15:18:23 -04:00
2018-02-04 16:11:00 +01:00
2019-03-24 14:50:16 -05:00
2018-02-02 16:09:17 +01:00
2021-03-18 15:18:23 -04:00
2019-02-15 18:24:55 -05:00
2021-04-06 16:55:43 -04:00
2018-02-04 16:11:00 +01:00
2018-02-28 13:07:58 +01:00
2020-06-18 18:14:30 -04:00
2023-06-03 11:56:01 -07:00
2018-08-15 11:43:57 +02:00
2020-08-16 02:50:35 -04:00
2021-04-22 15:51:04 -04:00
2023-01-07 11:39:56 -03:00
2021-03-29 08:52:40 -04:00
2021-11-04 17:28:41 -04:00
2021-10-24 15:49:19 -04:00
2022-08-25 03:42:41 -04:00
2020-03-06 09:47:20 +00:00
2020-03-06 09:47:20 +00:00
2021-03-31 16:08:42 -04:00
2020-05-27 16:41:23 -04:00
2022-03-31 12:54:07 -04:00
2021-10-14 15:10:41 -04:00
2021-05-04 01:21:50 -04:00
2022-06-14 09:37:39 -04:00
2023-03-08 12:00:30 -05:00
2020-01-26 09:40:35 -06:00
2022-09-12 21:14:15 -03:00
2020-06-06 16:10:03 -04:00
2019-10-06 20:04:30 -04:00
2018-05-19 18:02:43 +02:00
2023-03-08 12:00:30 -05:00
2021-10-31 01:44:18 -04:00
2023-03-08 12:00:30 -05:00
2023-04-20 20:35:22 +01:00
2020-06-17 03:39:03 -04:00
2023-02-09 23:12:29 +01:00
2021-02-28 10:06:07 -06:00
2021-08-10 22:13:02 -04:00
2023-04-14 19:25:50 +01:00
2023-04-14 19:25:50 +01:00
2017-12-26 21:20:29 -06:00
2020-07-17 15:49:46 -04:00
2021-04-02 01:49:38 -04:00
2022-11-22 02:17:03 -05:00
2022-11-09 15:16:46 -05:00
2022-09-07 14:37:03 +02:00
2017-09-07 19:45:32 +02:00
2018-12-31 19:39:41 -06:00
2023-01-07 11:39:56 -03:00
2018-04-09 12:52:28 +05:30
2021-04-01 03:29:15 -04:00
2020-05-24 08:28:02 -05:00
2022-09-12 21:14:15 -03:00
2020-04-08 17:23:32 -04:00
2021-02-28 17:11:46 -06:00
2017-09-18 09:23:06 -04:00
2018-01-16 18:59:06 +01:00
2023-05-25 15:09:16 -04:00
2023-04-14 19:25:50 +01:00
2017-08-31 16:48:24 +02:00
2021-08-02 13:58:40 -04:00
2021-02-26 17:26:39 -05:00
2017-09-08 22:23:14 +02:00
2022-09-11 14:14:49 -04:00
2021-12-28 14:48:57 -03:00
2017-09-28 20:52:36 +02:00
2020-08-04 14:25:13 -04:00
2019-01-02 19:46:15 -06:00
2017-11-28 23:02:09 +01:00
2020-04-13 08:42:31 -04:00
2022-08-05 10:42:31 -04:00
2022-08-15 15:18:12 -04:00
2022-09-22 15:08:17 -04:00
2019-03-03 09:31:08 -06:00
2020-05-24 08:24:20 -05:00
2022-07-29 15:38:23 -04:00
2023-04-22 19:18:10 +02:00
2021-02-24 11:03:25 -05:00
2022-09-27 17:23:26 -04:00
2022-09-27 17:23:26 -04:00
2018-01-29 15:55:34 +01:00
2023-02-11 22:36:42 -03:00
2020-03-06 09:47:20 +00:00
2017-09-19 14:27:46 +02:00
2020-05-31 13:11:18 -04:00
2022-09-11 14:14:49 -04:00
2021-09-26 17:01:39 -04:00
2022-11-22 02:17:03 -05:00