mirror of
https://github.com/pret/pmd-red.git
synced 2026-03-26 12:05:17 -05:00
17 lines
460 B
C
17 lines
460 B
C
#include "global.h"
|
|
#include "targeting_flags.h"
|
|
|
|
#include "constants/move_id.h"
|
|
#include "constants/type.h"
|
|
#include "dungeon_pokemon_attributes.h"
|
|
#include "moves.h"
|
|
|
|
s16 GetMoveTargetAndRangeForPokemon(Entity *pokemon, Move *move, bool32 isAI)
|
|
{
|
|
if (move->id == MOVE_CURSE && !isAI && !MonsterIsType(pokemon, TYPE_GHOST))
|
|
{
|
|
return TARGETING_FLAG_BOOST_SELF | TARGETING_FLAG_TARGET_SELF;
|
|
}
|
|
return GetMoveTargetAndRange(move, isAI);
|
|
}
|