From 9a4864c1cf8c0a6da847f3b8977aaca23b712a5a Mon Sep 17 00:00:00 2001 From: AnonymousRandomPerson Date: Fri, 4 Mar 2022 23:49:00 -0500 Subject: Decomped WeightWeakTypePicker() --- src/dungeon_pokemon_attributes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dungeon_pokemon_attributes.c') diff --git a/src/dungeon_pokemon_attributes.c b/src/dungeon_pokemon_attributes.c index 671162d..0550d7d 100644 --- a/src/dungeon_pokemon_attributes.c +++ b/src/dungeon_pokemon_attributes.c @@ -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; } -- cgit v1.2.3