diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2022-03-11 10:10:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 10:10:49 -0800 |
commit | 30fea2d6f303e0e57b62032f56da86c8223ef1f7 (patch) | |
tree | 9636ef46bb5f555874dc8ba16c82dc79bc563a12 /src/dungeon_pokemon_attributes.c | |
parent | ea1aa9c0c5c3a4167912d1078fffdd5e69cbbe98 (diff) | |
parent | cf492fd141b33c21f369dfa7aabebf3c52cb8ec1 (diff) |
Merge pull request #98 from AnonymousRandomPerson/master
Finished attack AI decomp
Diffstat (limited to 'src/dungeon_pokemon_attributes.c')
-rw-r--r-- | src/dungeon_pokemon_attributes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dungeon_pokemon_attributes.c b/src/dungeon_pokemon_attributes.c index bd3a1f6..0550d7d 100644 --- a/src/dungeon_pokemon_attributes.c +++ b/src/dungeon_pokemon_attributes.c @@ -95,7 +95,7 @@ bool8 HasAbility(struct DungeonEntity *pokemon, u8 ability) else { struct DungeonEntityData *pokemonData = pokemon->entityData; - if (pokemonData->ability1 == ability || pokemonData->ability2 == ability) + if (pokemonData->abilities[0] == ability || pokemonData->abilities[1] == ability) { return TRUE; } @@ -110,11 +110,11 @@ bool8 HasType(struct DungeonEntity *pokemon, u8 type) { return FALSE; } - if (pokemonData->type1 == type) + if (pokemonData->types[0] == type) { return TRUE; } - if (pokemonData->type2 == type) + if (pokemonData->types[1] == type) { return TRUE; } |