Update src/battle_script_commands.c

Spacing refix

Co-authored-by: LOuroboros <lunosouroboros@gmail.com>
This commit is contained in:
SonikkuA-DatH 2022-12-18 22:26:51 -08:00 committed by GitHub
parent 03b5d36249
commit c81b702a86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8151,21 +8151,19 @@ static bool32 IsAbilityRodAffected(void)
static bool32 IsAbilityMotorAffected(void)
{
u32 moveType;
u32 moveType;
if (gBattleStruct->dynamicMoveType == 0)
moveType = gBattleMoves[gCurrentMove].type;
else if (!(gBattleStruct->dynamicMoveType & 0x40))
moveType = gBattleStruct->dynamicMoveType & 0x3F;
else
moveType = gBattleMoves[gCurrentMove].type;
if (gBattleStruct->dynamicMoveType == 0)
moveType = gBattleMoves[gCurrentMove].type;
else if (!(gBattleStruct->dynamicMoveType & 0x40))
moveType = gBattleStruct->dynamicMoveType & 0x3F;
else
moveType = gBattleMoves[gCurrentMove].type;
if (moveType == TYPE_ELECTRIC && GetBattlerAbility(gBattlerTarget) == ABILITY_MOTOR_DRIVE) {
return TRUE;
}
else {
return FALSE;
}
if (moveType == TYPE_ELECTRIC && GetBattlerAbility(gBattlerTarget) == ABILITY_MOTOR_DRIVE)
return TRUE;
else
return FALSE;
}
static bool32 IsAbilityAbsorbAffected(void)