class PokeBattle_Move_B01 < PokeBattle_Move
def pbEffectAfterHit(attacker,opponent,turneffects)
int = rand(10)
if int == 0
@battle.weather=PBWeather::HAIL
@battle.weatherduration=5
@battle.weatherduration=8 if attacker.hasWorkingItem(:ICYROCK)
@battle.pbCommonAnimation("Hail",nil,nil)
@battle.pbDisplay(_INTL("It started to hail!"))
elsif int == 1
@battle.weather=PBWeather::RAINDANCE
@battle.weatherduration=5
@battle.weatherduration=8 if attacker.hasWorkingItem(:DAMPROCK)
@battle.pbCommonAnimation("Rain",nil,nil)
@battle.pbDisplay(_INTL("It started to rain!"))
end
end
end