Merge pull request #396 from LOuroboros/regenerator

Fixed Regenerator
This commit is contained in:
DizzyEggg 2020-05-30 10:54:53 +02:00 committed by GitHub
commit 624f8fb28a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11182,7 +11182,7 @@ static void Cmd_switchoutabilities(void)
gBattleMoveDamage = gBattleMons[gActiveBattler].maxHP / 3; gBattleMoveDamage = gBattleMons[gActiveBattler].maxHP / 3;
gBattleMoveDamage += gBattleMons[gActiveBattler].hp; gBattleMoveDamage += gBattleMons[gActiveBattler].hp;
if (gBattleMoveDamage > gBattleMons[gActiveBattler].maxHP) if (gBattleMoveDamage > gBattleMons[gActiveBattler].maxHP)
gBattleMons[gActiveBattler].maxHP = gBattleMons[gActiveBattler].maxHP; gBattleMoveDamage = gBattleMons[gActiveBattler].maxHP;
BtlController_EmitSetMonData(0, REQUEST_HP_BATTLE, gBitTable[*(gBattleStruct->field_58 + gActiveBattler)], 2, &gBattleMoveDamage); BtlController_EmitSetMonData(0, REQUEST_HP_BATTLE, gBitTable[*(gBattleStruct->field_58 + gActiveBattler)], 2, &gBattleMoveDamage);
MarkBattlerForControllerExec(gActiveBattler); MarkBattlerForControllerExec(gActiveBattler);
break; break;