Fixes Trainer Slide messages causing corruption for recoil damage (#5926)

This commit is contained in:
Alex 2025-01-01 21:46:42 +01:00 committed by GitHub
parent b7e945fbfb
commit 875f0f7436
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10369,6 +10369,7 @@ static void Cmd_various(void)
{
gBattlerSpriteIds[BATTLE_PARTNER(battler)] = gBattleScripting.savedDmg >> 8;
gBattlerSpriteIds[battler] = gBattleScripting.savedDmg & 0xFF;
gBattleScripting.savedDmg = 0;
if (IsBattlerAlive(battler))
{
SetBattlerShadowSpriteCallback(battler, gBattleMons[battler].species);