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

@ -10135,25 +10135,21 @@ static void Cmd_various(void)
return; return;
} }
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;
for (i = 0; i < gBattlersCount; i++)
{ {
u32 count = 0; if (IsTeatimeAffected(i))
for (i = 0; i < gBattlersCount; i++) count++;
{
if (IsTeatimeAffected(i))
{
count++;
}
}
if (count == 0) {
gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 3); // Teatime fails
}
else {
gBattlescriptCurrInstr += 7;
}
} }
return; if (count == 0)
gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 3); // Teatime fails
else
gBattlescriptCurrInstr += 7;
}
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)))
gBattlescriptCurrInstr += 7; gBattlescriptCurrInstr += 7;