Fixes Trainer Slide messages causing corruption for recoil damage (#5926)
This commit is contained in:
parent
b7e945fbfb
commit
875f0f7436
1 changed files with 1 additions and 0 deletions
|
@ -10369,6 +10369,7 @@ static void Cmd_various(void)
|
||||||
{
|
{
|
||||||
gBattlerSpriteIds[BATTLE_PARTNER(battler)] = gBattleScripting.savedDmg >> 8;
|
gBattlerSpriteIds[BATTLE_PARTNER(battler)] = gBattleScripting.savedDmg >> 8;
|
||||||
gBattlerSpriteIds[battler] = gBattleScripting.savedDmg & 0xFF;
|
gBattlerSpriteIds[battler] = gBattleScripting.savedDmg & 0xFF;
|
||||||
|
gBattleScripting.savedDmg = 0;
|
||||||
if (IsBattlerAlive(battler))
|
if (IsBattlerAlive(battler))
|
||||||
{
|
{
|
||||||
SetBattlerShadowSpriteCallback(battler, gBattleMons[battler].species);
|
SetBattlerShadowSpriteCallback(battler, gBattleMons[battler].species);
|
||||||
|
|
Loading…
Reference in a new issue