Fix transform tint applying to every from change on reload (#8417)

This commit is contained in:
FosterProgramming 2025-12-02 23:43:58 +01:00 committed by GitHub
parent 7e0b1de2ae
commit 6c8400b6af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -655,7 +655,7 @@ void BattleLoadMonSpriteGfx(struct Pokemon *mon, u32 battler)
LoadPalette(paletteData, BG_PLTT_ID(8) + BG_PLTT_ID(battler), PLTT_SIZE_4BPP);
// transform's pink color
if (gBattleSpritesDataPtr->battlerData[battler].transformSpecies != SPECIES_NONE)
if (gBattleMons[battler].volatiles.transformed)
{
BlendPalette(paletteOffset, 16, 6, RGB_WHITE);
CpuCopy32(&gPlttBufferFaded[paletteOffset], &gPlttBufferUnfaded[paletteOffset], PLTT_SIZEOF(16));