Remove SetBattlerData from AI_CalcDamage (#4881)

This commit is contained in:
ghoulslash 2024-07-04 10:05:20 -04:00 committed by GitHub
commit 3df7e770df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -512,9 +512,6 @@ struct SimulatedDamage AI_CalcDamage(u32 move, u32 battlerAtk, u32 battlerDef, u
struct AiLogicData *aiData = AI_DATA;
gBattleStruct->aiCalcInProgress = TRUE;
SetBattlerData(battlerAtk);
SetBattlerData(battlerDef);
// Temporarily enable gimmicks for damage calcs if planned
if (gBattleStruct->gimmick.usableGimmick[battlerAtk] && GetActiveGimmick(battlerAtk) == GIMMICK_NONE
&& !(gBattleStruct->gimmick.usableGimmick[battlerAtk] == GIMMICK_Z_MOVE && !considerZPower))