blob: b0a670a72765e24b42fee6fdbd8e69a6be0e4d53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "global.h"
#include "dungeon_pokemon_attributes_1.h"
#include "constants/tactic.h"
bool8 HasTactic(struct DungeonEntity *pokemon, u8 tactic)
{
struct DungeonEntityData *pokemonData = pokemon->entityData;
if (pokemonData->isLeader)
{
bool8 isGoTheOtherWay = tactic == TACTIC_GO_THE_OTHER_WAY;
return isGoTheOtherWay;
}
return pokemonData->tactic == tactic;
}
|