Fix heat crash/heavy slam calculation

This commit is contained in:
kleeenexfeu 2021-11-09 18:12:40 +01:00 committed by GitHub
parent 4f56d0a2b5
commit d3abd20dfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7788,7 +7788,7 @@ static u16 CalcMoveBasePower(u16 move, u8 battlerAtk, u8 battlerDef)
if (weight >= ARRAY_COUNT(sHeatCrashPowerTable))
basePower = sHeatCrashPowerTable[ARRAY_COUNT(sHeatCrashPowerTable) - 1];
else
basePower = sHeatCrashPowerTable[i];
basePower = sHeatCrashPowerTable[weight];
break;
case EFFECT_PUNISHMENT:
basePower = 60 + (CountBattlerStatIncreases(battlerDef, FALSE) * 20);