Clear Destiny Bond/Grudge bits when not activated (#8334)

This commit is contained in:
PhallenTree 2025-11-23 16:32:14 +00:00 committed by GitHub
parent c2fba193a6
commit c7c97531ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4982,6 +4982,8 @@ static void MoveValuesCleanUp(void)
gBattleScripting.moveEffect = MOVE_EFFECT_NONE;
gBattleStruct->synchronizeMoveEffect = MOVE_EFFECT_NONE;
gBattleCommunication[MISS_TYPE] = 0;
gBattleStruct->tryDestinyBond = FALSE;
gBattleStruct->tryGrudge = FALSE;
}
static void Cmd_movevaluescleanup(void)
@ -7059,6 +7061,8 @@ static void Cmd_moveend(void)
gBattleStruct->additionalEffectsCounter = 0;
gBattleStruct->poisonPuppeteerConfusion = FALSE;
gBattleStruct->fickleBeamBoosted = FALSE;
gBattleStruct->tryDestinyBond = FALSE;
gBattleStruct->tryGrudge = FALSE;
gBattleStruct->battlerState[gBattlerAttacker].usedMicleBerry = FALSE;
gBattleStruct->noTargetPresent = FALSE;
gBattleStruct->toxicChainPriority = FALSE;