Missing constant in friendshiptodamagecalculation
This commit is contained in:
1 parent
32ea55dcba
commit
8a1130d046
1 file changed
+1
-1
@@ -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