Update src/battle_script_commands.c

Co-authored-by: LOuroboros <lunosouroboros@gmail.com>
This commit is contained in:
SonikkuA-DatH 2022-12-19 17:18:43 -08:00 committed by GitHub
parent 459631eb96
commit 07a91b9e9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8175,13 +8175,11 @@ static bool32 IsAbilityAbsorbAffected(void)
else
moveType = gBattleMoves[gCurrentMove].type;
if (moveType == TYPE_ELECTRIC && GetBattlerAbility(gBattlerTarget) == ABILITY_VOLT_ABSORB) {
if (moveType == TYPE_ELECTRIC && GetBattlerAbility(gBattlerTarget) == ABILITY_VOLT_ABSORB)
return TRUE;
}
else {
else
return FALSE;
}
}
static bool32 IsTeatimeAffected(u32 battlerId)
{