mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-18 04:27:38 +01:00
resist berry ripen boost
This commit is contained in:
parent
b3a6df8d57
commit
d3ae05189d
@ -7407,6 +7407,9 @@ static u32 CalcFinalDmg(u32 dmg, u16 move, u8 battlerAtk, u8 battlerDef, u8 move
|
|||||||
if (moveType == GetBattlerHoldEffectParam(battlerDef)
|
if (moveType == GetBattlerHoldEffectParam(battlerDef)
|
||||||
&& (moveType == TYPE_NORMAL || typeEffectivenessModifier >= UQ_4_12(2.0)))
|
&& (moveType == TYPE_NORMAL || typeEffectivenessModifier >= UQ_4_12(2.0)))
|
||||||
{
|
{
|
||||||
|
if (abilityDef == ABILITY_RIPEN)
|
||||||
|
MulModifier(&finalModifier, UQ_4_12(0.25));
|
||||||
|
else
|
||||||
MulModifier(&finalModifier, UQ_4_12(0.5));
|
MulModifier(&finalModifier, UQ_4_12(0.5));
|
||||||
if (updateFlags)
|
if (updateFlags)
|
||||||
gSpecialStatuses[battlerDef].berryReduced = 1;
|
gSpecialStatuses[battlerDef].berryReduced = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user