Update src/battle_util.c

Changed an `if` to `else if`

Co-authored-by: LOuroboros <lunosouroboros@gmail.com>
This commit is contained in:
MissingNoL 2021-06-05 16:38:37 -07:00 committed by GitHub
parent c4b700a8e7
commit 517763bc9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8371,7 +8371,7 @@ u8 GetBattleMoveSplit(u32 moveId)
{
if (gSwapDamageCategory == TRUE) // Photon Geyser, Shell Side Arm, Light That Burns the Sky
return SPLIT_PHYSICAL;
if (IS_MOVE_STATUS(moveId) || B_PHYSICAL_SPECIAL_SPLIT >= GEN_4)
else if (IS_MOVE_STATUS(moveId) || B_PHYSICAL_SPECIAL_SPLIT >= GEN_4)
return gBattleMoves[moveId].split;
else if (gBattleMoves[moveId].type < TYPE_MYSTERY)
return SPLIT_PHYSICAL;