Advertisement
Guest User

AI

a guest
Jun 16th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. when 0x116 # Sucker Punch
  2. if attacker.lastMoveUsed==26 # Sucker Punch last turn
  3. check = rand(3)
  4. if check >= 2
  5. score*=0.5
  6. end
  7. if setupvar
  8. score*=0.5
  9. end
  10. end
  11. when 0x206 # Desert's Mark
  12. if opponent.pbHasMove?(getID(PBMoves,:SUBSTITUTE))
  13. score*=0.1
  14. end
  15.  
  16. when 0xCA # Dig
  17. if attacker.hasWorkingAbility(:NOGUARD) || opponent.hasWorkingAbility(:NOGUARD) && !$fefieldeffect==12
  18. score*=0.1
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement