Special Def boost for rock types in sandstorm
This commit is contained in:
parent
8542e7fb1f
commit
2c2b807a57
1 changed files with 4 additions and 0 deletions
|
@ -5749,6 +5749,10 @@ static u32 CalcDefenseStat(u16 move, u8 battlerAtk, u8 battlerDef, u8 moveType,
|
|||
break;
|
||||
}
|
||||
|
||||
// sandstorm sp.def boost for rock types
|
||||
if (WEATHER_HAS_EFFECT && gBattleWeather & WEATHER_SANDSTORM_ANY && IS_BATTLER_OF_TYPE(battlerDef, TYPE_ROCK) && !usesDefStat)
|
||||
MulModifier(&modifier, UQ_4_12(1.5));
|
||||
|
||||
return ApplyModifier(modifier, defStat);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue