Merge pull request #1564 from BuffelSaft/form-capture
Undo form changes on capture
This commit is contained in:
commit
312583de5e
1 changed files with 2 additions and 0 deletions
|
@ -12097,6 +12097,7 @@ static void Cmd_handleballthrow(void)
|
|||
{
|
||||
BtlController_EmitBallThrowAnim(0, BALL_3_SHAKES_SUCCESS);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
UndoFormChange(gBattlerPartyIndexes[gBattlerTarget], GET_BATTLER_SIDE(gBattlerTarget));
|
||||
gBattlescriptCurrInstr = BattleScript_SuccessBallThrow;
|
||||
SetMonData(&gEnemyParty[gBattlerPartyIndexes[gBattlerTarget]], MON_DATA_POKEBALL, &gLastUsedItem);
|
||||
|
||||
|
@ -12141,6 +12142,7 @@ static void Cmd_handleballthrow(void)
|
|||
if (IsCriticalCapture())
|
||||
gBattleSpritesDataPtr->animationData->criticalCaptureSuccess = 1;
|
||||
|
||||
UndoFormChange(gBattlerPartyIndexes[gBattlerTarget], GET_BATTLER_SIDE(gBattlerTarget));
|
||||
gBattlescriptCurrInstr = BattleScript_SuccessBallThrow;
|
||||
SetMonData(&gEnemyParty[gBattlerPartyIndexes[gBattlerTarget]], MON_DATA_POKEBALL, &gLastUsedItem);
|
||||
if (CalculatePlayerPartyCount() == PARTY_SIZE)
|
||||
|
|
Loading…
Reference in a new issue