diff options
author | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-02-20 12:51:18 -0500 |
---|---|---|
committer | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-02-20 21:59:22 -0500 |
commit | 96372eb336d21e5da66246983e0522212f370bdf (patch) | |
tree | 84112b7f1643443dba9af53b21890ae9504a45bb /src/dungeon_ai_attack.c | |
parent | 3555fb7c945ef5152910a84390ecbd1a38ea585d (diff) |
Decomped CanUseOnSelfWithStatusChecker()
Diffstat (limited to 'src/dungeon_ai_attack.c')
-rw-r--r-- | src/dungeon_ai_attack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dungeon_ai_attack.c b/src/dungeon_ai_attack.c index 30e5d3a..a275081 100644 --- a/src/dungeon_ai_attack.c +++ b/src/dungeon_ai_attack.c @@ -22,6 +22,7 @@ #include "dungeon_visibility.h" #include "moves.h" #include "position_util.h" +#include "status_checker.h" #include "status_checks.h" #include "targeting.h" #include "targeting_flags.h" @@ -38,7 +39,6 @@ extern struct DungeonEntity *gPotentialTargets[NUM_DIRECTIONS]; extern bool8 IsMoveUsable(struct DungeonEntity*, s32, bool8); extern bool8 TargetRegularAttack(struct DungeonEntity*, u32*, bool8); -extern bool8 CanUseWithStatusChecker(struct DungeonEntity*, struct PokemonMove*); extern bool8 CanAttackInFront(struct DungeonEntity*, s32); extern s32 WeightMoveIfUsable(s32, s32, struct DungeonEntity*, struct DungeonEntity*, struct PokemonMove*, bool8); extern bool8 IsTargetInLineRange(struct DungeonEntity*, struct DungeonEntity*, s32); @@ -349,7 +349,7 @@ s32 FindMoveTarget(struct MoveTargetResults *moveTargetResults, struct DungeonEn hasStatusChecker = HasIQSkill(pokemon, IQ_SKILL_STATUS_CHECKER); moveTargetResults->moveUsable = FALSE; if ((pokemonData->volatileStatus == VOLATILE_STATUS_TAUNTED && !MoveDealsDirectDamage(move)) || - (hasStatusChecker && !CanUseWithStatusChecker(pokemon, move))) + (hasStatusChecker && !CanUseOnSelfWithStatusChecker(pokemon, move))) { return 1; } |