mirror of https://github.com/pret/pokeemerald.git
Changed `(moveType)` to `(type)` based on current `src/pokemon.c`
parent
e0beac6c6a
commit
d3458e0031
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue