Fix Shed Tail keeping Substitute sprite after closing party screen

This commit is contained in:
PhallenTree 2026-03-19 14:54:00 +00:00 committed by GitHub
parent 2ce46efb0c
commit 8a5da7986b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -355,6 +355,8 @@ void CreateBattlerSprite(enum BattlerId battler)
struct Pokemon *mon = GetBattlerMon(battler);
if (!IsValidForBattle(mon))
return;
if (gBattleStruct->battlerState[battler].notOnField) // Don't create sprite for a mon that has switched out
return;
u32 species = GetMonData(mon, MON_DATA_SPECIES);
SetMultiuseSpriteTemplateToPokemon(species, position);