diff options
Diffstat (limited to 'src/type_effectiveness.c')
-rw-r--r-- | src/type_effectiveness.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/type_effectiveness.c b/src/type_effectiveness.c index efc1ef9..8a9ee04 100644 --- a/src/type_effectiveness.c +++ b/src/type_effectiveness.c @@ -7,15 +7,12 @@ #include "dungeon_global_data.h" #include "dungeon_pokemon_attributes.h" #include "dungeon_util.h" +#include "status.h" #include "type_chart.h" #include "weather.h" -#define FLASH_FIRE_STATUS_NONE 0 - u32 gTypeEffectivenessMultipliers[] = {0, 1, 2, 4}; -extern u8 GetFlashFireStatus(struct DungeonEntity *pokemon); - s32 WeightWeakTypePicker(struct DungeonEntity *user, struct DungeonEntity *target, u8 moveType) { s32 weight = 1; @@ -79,8 +76,7 @@ s32 WeightWeakTypePicker(struct DungeonEntity *user, struct DungeonEntity *targe if (weight == 0) { // BUG: If the Pokémon's first type resists the move, the second type is ignored. - // This can cause type effectiveness to be calculated incorrectly - // if the first type resists the move and the second type is weak to the move. + // This calculates type effectiveness incorrectly if the first type resists the move and the second type is weak to the move. // For example, a Fire-type move is considered not very effective against a Rock/Bug-type like Anorith. return 2; } |