From 3732d8bf8f191b6d6f236b000f14e8743cb1e2c6 Mon Sep 17 00:00:00 2001 From: Matthew Cabral Date: Sat, 22 Jan 2022 01:25:06 -0500 Subject: Fixed `battle_tv.c` instruction in Phys/Spec guide --- Add-Physical-Special-Split.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Add-Physical-Special-Split.md b/Add-Physical-Special-Split.md index 699a6a4..af06109 100644 --- a/Add-Physical-Special-Split.md +++ b/Add-Physical-Special-Split.md @@ -175,17 +175,11 @@ IS_TYPE_SPECIAL(gBattleMoves[gCurrentMove]) And lastly, the two in **battle_tv.c** can be changed to: ```c -IS_TYPE_PHYSICAL(move) +IS_TYPE_PHYSICAL(gBattleMoves[gCurrentMove]) ``` and ```c -IS_TYPE_SPECIAL(move) -``` -In order for the `move` variable to stay defined, we will also have to relocate the line `#undef move` in **battle_tv.c** to later in the same function. For simplicity, you can place it next to the other `#undef`'s. It would then look like this: -```c -#undef move -#undef type -#undef power +IS_TYPE_SPECIAL(gBattleMoves[gCurrentMove]) ``` ## 4. Adding the category byte to moves -- cgit v1.2.3