SHARE
TWEET

Untitled

a guest Jun 19th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class PokeBattle_Move_159 < PokeBattle_Move
  2.     def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
  3.     if !attacker.pbCanIncreaseStatStage?(PBStats::SPEED,attacker,false,self)
  4.       @battle.pbDisplay(_INTL("{1}'s stats won't go any higher!",attacker.pbThis))
  5.       return -1
  6.           showanim=true
  7.     if attacker.pbCanReduceStatStage?(PBStats::DEFENSE,attacker,false,self)
  8.       attacker.pbReduceStat(PBStats::DEFENSE,2,attacker,false,self,showanim)
  9.       showanim=false
  10.     end
  11.     if attacker.pbCanReduceStatStage?(PBStats::SPDEF,attacker,false,self)
  12.       attacker.pbReduceStat(PBStats::SPDEF,2,attacker,false,self,showanim)
  13.       showanim=false
  14.     end
  15.     if attacker.pbCanIncreaseStatStage?(PBStats::SPEED,attacker,false,self)
  16.       attacker.pbIncreaseStat(PBStats::SPEED,4,attacker,false,self,showanim)
  17.       showanim=true
  18.     end
  19.     return 0
  20.   end
  21. end
  22. end
RAW Paste Data
Top