mirror of
https://github.com/pret/pmd-red.git
synced 2026-08-17 06:16:39 -05:00
18 lines
506 B
C
18 lines
506 B
C
#include "global.h"
|
|
#include "targeting_flags.h"
|
|
|
|
#include "constants/move_id.h"
|
|
#include "constants/type.h"
|
|
#include "moves.h"
|
|
|
|
extern bool8 HasType(struct DungeonEntity *pokemon, u8 type);
|
|
|
|
s16 GetMoveTargetingFlagsForPokemon(struct DungeonEntity *pokemon, struct PokemonMove *move, u32 isAI)
|
|
{
|
|
if (move->moveID == MOVE_CURSE && !isAI && !HasType(pokemon, TYPE_GHOST))
|
|
{
|
|
return TARGETING_FLAG_BOOST_SELF | TARGETING_FLAG_TARGET_SELF;
|
|
}
|
|
return GetMoveTargetingFlags(move, isAI);
|
|
}
|