- 79
- Posts
- 9
- Years
- Seen Jan 12, 2024
To make Hail more of a counterpart to Sandstorm (and not a worse version of it) I wanted to give ice types a physical defense boost in Hail, similar to what rock types get with special defense. The only thing is that the code for sandstorm's special defense boost is:
Why is it listed as 'defense' and not special defense?
How would I format it to boost physical defense and not special defense?
Thank you
Code:
if @battle.pbWeather==PBWeather::SANDSTORM &&
opponent.pbHasType?(:ROCK) && applysandstorm
defense=(defense*1.5).round
end
How would I format it to boost physical defense and not special defense?
Thank you