mirror of
https://github.com/pret/pmd-red.git
synced 2026-07-16 08:51:35 -05:00
20 lines
464 B
C
20 lines
464 B
C
#include "global.h"
|
|
#include "status.h"
|
|
|
|
#include "constants/ability.h"
|
|
#include "dungeon_pokemon_attributes.h"
|
|
#include "dungeon_util.h"
|
|
|
|
u8 GetFlashFireStatus(struct DungeonEntity *pokemon)
|
|
{
|
|
if (!EntityExists(pokemon) || !HasAbility(pokemon, ABILITY_FLASH_FIRE))
|
|
{
|
|
return FLASH_FIRE_STATUS_NONE;
|
|
}
|
|
if (pokemon->entityData->flashFireBoost > 1)
|
|
{
|
|
return FLASH_FIRE_STATUS_MAXED;
|
|
}
|
|
return FLASH_FIRE_STATUS_NOT_MAXED;
|
|
}
|