daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest May 16th, 2018 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     # Forecast
  2.    if isConst?(self.species,PBSpecies,:CASTFORM)
  3.       if self.hasWorkingAbility(:FORECAST)
  4.         case @battle.pbWeather
  5.         when PBWeather::SUNNYDAY, PBWeather::HARSHSUN
  6.           if self.form!=1
  7.             self.form=1; transformed=true
  8.           end
  9.         when PBWeather::RAINDANCE, PBWeather::HEAVYRAIN
  10.           if self.form!=2
  11.             self.form=2; transformed=true
  12.           end
  13.         when PBWeather::HAIL
  14.           if self.form!=3
  15.             self.form=3; transformed=true
  16.           end
  17.         else
  18.           if self.form!=0
  19.             self.form=0; transformed=true
  20.           end
  21.         end
  22.       else
  23.         if self.form!=0
  24.           self.form=0; transformed=true
  25.         end
  26.       end
  27.     end
  28.    
  29.     #Drizzle
  30.         if self.hasWorkingAbility(:DRIZZLE) && (@battle.weather!=PBWeather::RAINDANCE || @battle.weatherduration!=-1)
  31.           @battle.weather=PBWeather::RAINDANCE
  32.           if USENEWBATTLEMECHANICS
  33.             @battle.weatherduration=5
  34.             @battle.weatherduration=8 if hasWorkingItem(:DAMPROCK)
  35.           else
  36.             @battle.weatherduration=-1
  37.           end
  38.           @battle.pbCommonAnimation("Rain",nil,nil)
  39.           @battle.pbDisplay(_INTL("{1}'s {2} made it rain!",pbThis,PBAbilities.getName(self.ability)))
  40.           PBDebug.log("[Ability triggered] #{pbThis}'s Drizzle made it rain")
  41.         end
  42.        
  43.         #Multitype
  44. MultipleForms.register(:ARCEUS,{
  45. "getForm"=>proc{|pokemon|
  46.    next 1  if isConst?(pokemon.item,PBItems,:FISTPLATE)
  47.    next 2  if isConst?(pokemon.item,PBItems,:SKYPLATE)
  48.    next 3  if isConst?(pokemon.item,PBItems,:TOXICPLATE)
  49.    next 4  if isConst?(pokemon.item,PBItems,:EARTHPLATE)
  50.    next 5  if isConst?(pokemon.item,PBItems,:STONEPLATE)
  51.    next 6  if isConst?(pokemon.item,PBItems,:INSECTPLATE)
  52.    next 7  if isConst?(pokemon.item,PBItems,:SPOOKYPLATE)
  53.    next 8  if isConst?(pokemon.item,PBItems,:IRONPLATE)
  54.    next 10 if isConst?(pokemon.item,PBItems,:FLAMEPLATE)
  55.    next 11 if isConst?(pokemon.item,PBItems,:SPLASHPLATE)
  56.    next 12 if isConst?(pokemon.item,PBItems,:MEADOWPLATE)
  57.    next 13 if isConst?(pokemon.item,PBItems,:ZAPPLATE)
  58.    next 14 if isConst?(pokemon.item,PBItems,:MINDPLATE)
  59.    next 15 if isConst?(pokemon.item,PBItems,:ICICLEPLATE)
  60.    next 16 if isConst?(pokemon.item,PBItems,:DRACOPLATE)
  61.    next 17 if isConst?(pokemon.item,PBItems,:DREADPLATE)
  62.    next 18 if isConst?(pokemon.item,PBItems,:PIXIEPLATE)
  63.    next 0
  64. }
  65. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top