Fix trainer slide in shadow steal

This commit is contained in:
DizzyEggg 2020-04-18 13:26:40 +02:00
parent 1395a7d382
commit 68bcc76538

View File

@ -7751,6 +7751,7 @@ static void Cmd_various(void)
if (gBattlescriptCurrInstr[3] == 0)
{
gBattleScripting.savedDmg = gBattlerSpriteIds[gActiveBattler];
HideBattlerShadowSprite(gActiveBattler);
}
else if (gBattlescriptCurrInstr[3] == 1)
{
@ -7762,6 +7763,7 @@ static void Cmd_various(void)
gBattlerSpriteIds[gActiveBattler] = gBattleScripting.savedDmg;
if (gBattleMons[gActiveBattler].hp != 0)
{
SetBattlerShadowSpriteCallback(gActiveBattler, gBattleMons[gActiveBattler].species);
BattleLoadOpponentMonSpriteGfx(&gEnemyParty[gBattlerPartyIndexes[gActiveBattler]], gActiveBattler);
}
}