Update src/battle_script_commands.c

Co-authored-by: LOuroboros <lunosouroboros@gmail.com>
This commit is contained in:
DizzyEggg 2023-02-22 09:17:23 +01:00 committed by GitHub
parent 1e2eeb4d79
commit bca47a0891
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6914,7 +6914,7 @@ bool32 ShouldPostponeSwitchInAbilities(u32 battlerId)
{
bool32 aliveOpposing1 = IsBattlerAlive(BATTLE_OPPOSITE(battlerId));
bool32 aliveOpposing2 = IsBattlerAlive(BATTLE_PARTNER(BATTLE_OPPOSITE(battlerId)));
// No pokemon on opposing side - postopone.
// No pokemon on opposing side - postpone.
if (!aliveOpposing1 && !aliveOpposing2)
return TRUE;