Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################################
- # No additional effect.
- ################################################################################
- class PokeBattle_Move_000 < PokeBattle_Move
- def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
- return super(attacker,opponent,hitnum,alltargets,showanimation) if pbIsDamaging?
- return -1 if !attacker.pbCanIncreaseStatStage?(PBStats::ATTACK,attacker,true,self)
- pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
- ret=attacker.pbIncreaseStat(PBStats::ATTACK,2,attacker,false,self)
- return ret ? 0 : -1
- end
- def pbAdditionalEffect(attacker,opponent)
- if attacker.pbCanIncreaseStatStage?(PBStats::ATTACK,attacker,false,self)
- attacker.pbIncreaseStat(PBStats::ATTACK,2,attacker,false,self)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement