summaryrefslogtreecommitdiff
path: root/src/dungeon_pokemon_attributes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dungeon_pokemon_attributes.c')
-rw-r--r--src/dungeon_pokemon_attributes.c6
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;
}