Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. def fuckSeaking(moves):
  2.  
  3. def checkAbility(poke, abilityname):
  4. if poke.ability == abilityname:
  5. return 1
  6. return 0
  7.  
  8. Electric = 0
  9. Fire = 0
  10. Grass = 0
  11. Ground = 0
  12. Water = 0
  13.  
  14. for p in user.team:
  15. Electric = Electric + checkAbility(p, "Lightningrod") + checkAbility(p, "Volt Absorb")
  16. Fire = Fire + checkAbility(p, "Flash Fire")
  17. Grass = Grass + checkAbility(p, "Sap Sipper")
  18. Ground = Ground + checkAbility(p, "Levitate")
  19. Water = Water + checkAbility(p, "Dry Skin") + checkAbility(p, "Storm Drain") + checkAbility(p, "Water Absorb")
  20.  
  21. tempmoves = []
  22. newmoves = []
  23. for a in moves:
  24. temp_a = list(a)
  25. for item in temp_a:
  26. if Electric is not 0:
  27. if item in ["Thunder Punch","Thunderbolt","Thunder","Volt Switch","Bolt Strike","Thunder Fang","Fusion Bolt"]:
  28. temp_a.remove(item)
  29. if Fire is not 0:
  30. if item in ["Fire Punch","Flare Blitz","Inferno","Overheat","Flamethrower","Fire Blast","Fire Fang","Fusion Flare","Blue Flare","V-Create","Fiery Dance","Sacred Fire"]:
  31. temp_a.remove(item)
  32. if Grass is not 0:
  33. if item in ["Seed Flare","Giga Drain","Seed Bomb","Bullet Seed","Leaf Blade","Energy Ball","Power Whip","Wood Hammer"]:
  34. temp_a.remove(item)
  35. if Ground is not 0:
  36. if item in ["Bulldoze","Earthquake","Earth Power","Thousand Arrows","Stomping Tantrum"]:
  37. temp_a.remove(item)
  38. if Water is not 0:
  39. if item in ["Hydro Pump","Surf","Scald","Steam Eruption","Water Pulse","Water Shuriken","Waterfall","Liquidation","Aqua Tail","Water Spout"]:
  40. temp_a.remove(item)
  41. tempmoves.append(temp_a)
  42. for n in tempmoves:
  43. while len(n) < 4:
  44. n.append(n[0])
  45. newmoves.append(tuple(n))
  46. return newmoves
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement