Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. ################################################################################
  2. # Ensures the next hit is critical and lowers the opponents speed. (420 No Scope)
  3. ################################################################################
  4. class PokeBattle_Move_1B8 < 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 !opponent.pbCanReduceStatStage?(PBStats::SPEED,attacker,true,self)
  8. pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
  9. ret=opponent.pbReduceStat(PBStats::SPEED,1,attacker,false,self)
  10. return ret ? 0 : -1
  11. if attacker.effects[PBEffects::LaserFocus]
  12. @battle.pbDisplay(_INTL("But it failed!"))
  13. return -1
  14. end
  15. pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
  16. attacker.effects[PBEffects::LaserFocus]=true
  17. @battle.pbDisplay(_INTL("{1} is focused!",attacker.pbThis))
  18. return 0
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement