Vendily

pbPrimordialWeather

Feb 2nd, 2018
169
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def pbPrimordialWeather
  2. # End Primordial Sea, Desolate Land, Delta Stream
  3. hasabil=false
  4. case @weather
  5. when PBWeather::HEAVYRAIN
  6. for i in 0...4
  7. if isConst?(@battlers[i].ability,PBAbilities,:PRIMORDIALSEA) &&
  8. !@battlers[i].fainted?
  9. hasabil=true; break
  10. end
  11. end
  12. if !hasabil
  13. @weather=0
  14. pbDisplayBrief("The heavy rain has lifted!")
  15. end
  16. when PBWeather::HARSHSUN
  17. for i in 0...4
  18. if isConst?(@battlers[i].ability,PBAbilities,:DESOLATELAND) &&
  19. !@battlers[i].fainted?
  20. hasabil=true; break
  21. end
  22. end
  23. if !hasabil
  24. @weather=0
  25. pbDisplayBrief("The harsh sunlight faded!")
  26. end
  27. when PBWeather::STRONGWINDS
  28. for i in 0...4
  29. if isConst?(@battlers[i].ability,PBAbilities,:DELTASTREAM) &&
  30. !@battlers[i].fainted?
  31. hasabil=true; break
  32. end
  33. end
  34. if !hasabil
  35. @weather=0
  36. pbDisplayBrief("The mysterious air current has dissipated!")
  37. end
  38. end
  39. end
RAW Paste Data