Update src/battle_script_commands.c

removes various description

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

View File

@ -10136,23 +10136,19 @@ static void Cmd_various(void)
} }
break; break;
case VARIOUS_TEATIME_TARGETS: case VARIOUS_TEATIME_TARGETS:
// Gets the battlers to be affected by teatime. If there are none, print 'But it failed!'
{ {
u32 count = 0; u32 count = 0;
for (i = 0; i < gBattlersCount; i++) for (i = 0; i < gBattlersCount; i++)
{ {
if (IsTeatimeAffected(i)) if (IsTeatimeAffected(i))
{
count++; count++;
} }
} if (count == 0)
if (count == 0) {
gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 3); // Teatime fails gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 3); // Teatime fails
} else
else {
gBattlescriptCurrInstr += 7; gBattlescriptCurrInstr += 7;
} }
}
return; return;
case VARIOUS_TEATIME_INVUL: case VARIOUS_TEATIME_INVUL:
if (ItemId_GetPocket(gBattleMons[gActiveBattler].item) == POCKET_BERRIES && !(gStatuses3[gBattlerTarget] & (STATUS3_SEMI_INVULNERABLE))) if (ItemId_GetPocket(gBattleMons[gActiveBattler].item) == POCKET_BERRIES && !(gStatuses3[gBattlerTarget] & (STATUS3_SEMI_INVULNERABLE)))