Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def pbPrimordialWeather
- # End Primordial Sea, Desolate Land, Delta Stream
- hasabil=false
- case @weather
- when PBWeather::HEAVYRAIN
- for i in 0...4
- if isConst?(@battlers[i].ability,PBAbilities,:PRIMORDIALSEA) &&
- !@battlers[i].fainted?
- hasabil=true; break
- end
- end
- if !hasabil
- @weather=0
- pbDisplayBrief("The heavy rain has lifted!")
- end
- when PBWeather::HARSHSUN
- for i in 0...4
- if isConst?(@battlers[i].ability,PBAbilities,:DESOLATELAND) &&
- !@battlers[i].fainted?
- hasabil=true; break
- end
- end
- if !hasabil
- @weather=0
- pbDisplayBrief("The harsh sunlight faded!")
- end
- when PBWeather::STRONGWINDS
- for i in 0...4
- if isConst?(@battlers[i].ability,PBAbilities,:DELTASTREAM) &&
- !@battlers[i].fainted?
- hasabil=true; break
- end
- end
- if !hasabil
- @weather=0
- pbDisplayBrief("The mysterious air current has dissipated!")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement