Merge pull request #1877 from kleeenexfeu/patch-1

Fix heat crash/heavy slam calculation
This commit is contained in:
BuffelSaft 2021-11-10 14:18:57 +13:00 committed by GitHub
commit e886076998
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);