blob: a9aa6c2288cac75370577e573dcc9710bf1c5477 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "global.h"
#include "dungeon_pokemon_attributes.h"
#include "dungeon_util.h"
bool8 HasAbility(struct DungeonEntity *pokemon, u8 ability)
{
if (!EntityExists(pokemon))
{
return FALSE;
}
else
{
struct DungeonEntityData *pokemonData = pokemon->entityData;
if (pokemonData->ability1 == ability || pokemonData->ability2 == ability)
{
return TRUE;
}
return FALSE;
}
}
|