Fix mon shadow when caught and learn new move

Fixes #1477
This commit is contained in:
DizzyEggg 2021-06-09 09:49:42 +02:00 committed by GitHub
parent 1ff3718d1f
commit 1e855cf469
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1162,7 +1162,7 @@ void SpriteCB_SetInvisible(struct Sprite *sprite)
void SetBattlerShadowSpriteCallback(u8 battlerId, u16 species)
{
// The player's shadow is never seen.
if (GetBattlerSide(battlerId) == B_SIDE_PLAYER)
if (GetBattlerSide(battlerId) == B_SIDE_PLAYER || gBattleScripting.monCaught)
return;
if (gBattleSpritesDataPtr->battlerData[battlerId].transformSpecies != SPECIES_NONE)