Remove SetBattlerData from AI_CalcDamage

Since #4156 SetBattlerData and RestoreBattlerData were moved out of `AI_CalcDamage`. I assume this was a bad merge somewhere
This commit is contained in:
Alex 2024-06-28 19:36:09 +02:00 committed by GitHub
parent d1ca1f667f
commit 699c96afa3
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))