Advertisement
Nyaruko69

Untitled

Aug 6th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. class PokeBattle_Move_197 < PokeBattle_Move
  2. def pbIsMultiHit
  3. return true
  4. end
  5.  
  6. def pbNumHits(attacker)
  7. return 3
  8. end
  9.  
  10. def pbAdditionalEffect(attacker,opponent)
  11. return if opponent.damagestate.substitute
  12. case @battle.pbRandom(3)
  13. when 0
  14. if opponent.pbCanBurn?(attacker,false,self)
  15. opponent.pbBurn(attacker)
  16. end
  17. when 1
  18. if opponent.pbCanFreeze?(attacker,false,self)
  19. opponent.pbFreeze
  20. end
  21. when 2
  22. if opponent.pbCanParalyze?(attacker,false,self)
  23. opponent.pbParalyze(attacker)
  24. end
  25. end
  26. end
  27. end
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement