fix: destroy shadows during battle transition intro

This commit is contained in:
Ariel A 2025-06-24 19:57:04 -04:00
parent cab7f8b24b
commit 1cc2c7f2a0

View File

@ -1068,6 +1068,9 @@ static void Task_BattleTransition(u8 taskId)
static bool8 Transition_StartIntro(struct Task *task)
{
SetWeatherScreenFadeOut();
// cause all shadow sprites to destroy themselves,
// freeing up sprite slots for the transition
gWeatherPtr->noShadows = TRUE;
CpuCopy32(gPlttBufferFaded, gPlttBufferUnfaded, PLTT_SIZE);
if (sTasks_Intro[task->tTransitionId] != NULL)
{