mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 12:07:38 +01:00
Fix trainer slide in shadow steal
This commit is contained in:
parent
1395a7d382
commit
68bcc76538
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user