diff --git a/Add-Physical-Special-Split.md b/Add-Physical-Special-Split.md index 224802b..1931aff 100644 --- a/Add-Physical-Special-Split.md +++ b/Add-Physical-Special-Split.md @@ -138,7 +138,7 @@ if (defender->ability == ABILITY_THICK_FAT && (type == TYPE_FIRE || type == TYPE The next thing we need to do is change the arguments passed to IS_TYPE_PHYSICAL and IS_TYPE_SPECIAL. Originally, they were passed a type argument, but now we want to pass a move argument. There is one instance of each of these functions in **src/pokemon.c**, three more in **src/battle_script_commands.c**, and two more in **src/battle_tv.c**. The ones in **pokemon.c** should be changed from IS_TYPE_PHYSICAL(type) and IS_TYPE_SPECIAL(type) to IS_TYPE_PHYSICAL(gBattleMoves[move]) and IS_TYPE_SPECIAL(gBattleMoves[move]). The first one in **battle_script_commands.c** can also be changed like this, but the argument names are different for the second and third one. The second one looks like this originally: ```c -IS_TYPE_PHYSICAL(moveType) +IS_TYPE_PHYSICAL(type) ``` We will change this to: ```c @@ -146,7 +146,7 @@ IS_TYPE_PHYSICAL(gBattleMoves[gCurrentMove]) ``` The third one also needs to be changed; originally it reads: ```c -IS_TYPE_SPECIAL(moveType) +IS_TYPE_SPECIAL(type) ``` We will change this to: ```c