Missing constant in friendshiptodamagecalculation
This commit is contained in:
@@ -8520,7 +8520,7 @@ static void Cmd_friendshiptodamagecalculation(void)
|
|||||||
if (gBattleMoves[gCurrentMove].effect == EFFECT_RETURN)
|
if (gBattleMoves[gCurrentMove].effect == EFFECT_RETURN)
|
||||||
gDynamicBasePower = 10 * (gBattleMons[gBattlerAttacker].friendship) / 25;
|
gDynamicBasePower = 10 * (gBattleMons[gBattlerAttacker].friendship) / 25;
|
||||||
else // EFFECT_FRUSTRATION
|
else // EFFECT_FRUSTRATION
|
||||||
gDynamicBasePower = 10 * (255 - gBattleMons[gBattlerAttacker].friendship) / 25;
|
gDynamicBasePower = 10 * (MAX_FRIENDSHIP - gBattleMons[gBattlerAttacker].friendship) / 25;
|
||||||
|
|
||||||
gBattlescriptCurrInstr++;
|
gBattlescriptCurrInstr++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user