Update src/battle_script_commands.c

Bracket fixing

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

View File

@ -8141,12 +8141,10 @@ static bool32 IsAbilityRodAffected(void)
else
moveType = gBattleMoves[gCurrentMove].type;
if (moveType == TYPE_ELECTRIC && GetBattlerAbility(gBattlerTarget) == ABILITY_LIGHTNING_ROD) {
if (moveType == TYPE_ELECTRIC && GetBattlerAbility(gBattlerTarget) == ABILITY_LIGHTNING_ROD)
return TRUE;
}
else {
else
return FALSE;
}
}
static bool32 IsAbilityMotorAffected(void)