SHARE
TWEET

AI

a guest Jun 16th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top