Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PokeBattle_Move_159 < PokeBattle_Move
- def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
- if !attacker.pbCanIncreaseStatStage?(PBStats::SPEED,attacker,false,self)
- @battle.pbDisplay(_INTL("{1}'s stats won't go any higher!",attacker.pbThis))
- return -1
- showanim=true
- if attacker.pbCanReduceStatStage?(PBStats::DEFENSE,attacker,false,self)
- attacker.pbReduceStat(PBStats::DEFENSE,2,attacker,false,self,showanim)
- showanim=false
- end
- if attacker.pbCanReduceStatStage?(PBStats::SPDEF,attacker,false,self)
- attacker.pbReduceStat(PBStats::SPDEF,2,attacker,false,self,showanim)
- showanim=false
- end
- if attacker.pbCanIncreaseStatStage?(PBStats::SPEED,attacker,false,self)
- attacker.pbIncreaseStat(PBStats::SPEED,4,attacker,false,self,showanim)
- showanim=true
- end
- return 0
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement