Advertisement
Vendily

same code

Jun 28th, 2017
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.86 KB | None | 0 0
  1. ################################################################################
  2. # No additional effect.
  3. ################################################################################
  4. class PokeBattle_Move_000 < PokeBattle_Move
  5.   def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
  6.     return super(attacker,opponent,hitnum,alltargets,showanimation) if pbIsDamaging?
  7.     return -1 if !attacker.pbCanIncreaseStatStage?(PBStats::ATTACK,attacker,true,self)
  8.     pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
  9.     ret=attacker.pbIncreaseStat(PBStats::ATTACK,2,attacker,false,self)
  10.     return ret ? 0 : -1
  11.   end
  12.  
  13.   def pbAdditionalEffect(attacker,opponent)
  14.     if attacker.pbCanIncreaseStatStage?(PBStats::ATTACK,attacker,false,self)
  15.       attacker.pbIncreaseStat(PBStats::ATTACK,2,attacker,false,self)
  16.     end
  17.   end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement