Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fuckSeaking(moves):
- def checkAbility(poke, abilityname):
- if poke.ability == abilityname:
- return 1
- return 0
- Electric = 0
- Fire = 0
- Grass = 0
- Ground = 0
- Water = 0
- for p in user.team:
- Electric = Electric + checkAbility(p, "Lightningrod") + checkAbility(p, "Volt Absorb")
- Fire = Fire + checkAbility(p, "Flash Fire")
- Grass = Grass + checkAbility(p, "Sap Sipper")
- Ground = Ground + checkAbility(p, "Levitate")
- Water = Water + checkAbility(p, "Dry Skin") + checkAbility(p, "Storm Drain") + checkAbility(p, "Water Absorb")
- tempmoves = []
- newmoves = []
- for a in moves:
- temp_a = list(a)
- for item in temp_a:
- if Electric is not 0:
- if item in ["Thunder Punch","Thunderbolt","Thunder","Volt Switch","Bolt Strike","Thunder Fang","Fusion Bolt"]:
- temp_a.remove(item)
- if Fire is not 0:
- if item in ["Fire Punch","Flare Blitz","Inferno","Overheat","Flamethrower","Fire Blast","Fire Fang","Fusion Flare","Blue Flare","V-Create","Fiery Dance","Sacred Fire"]:
- temp_a.remove(item)
- if Grass is not 0:
- if item in ["Seed Flare","Giga Drain","Seed Bomb","Bullet Seed","Leaf Blade","Energy Ball","Power Whip","Wood Hammer"]:
- temp_a.remove(item)
- if Ground is not 0:
- if item in ["Bulldoze","Earthquake","Earth Power","Thousand Arrows","Stomping Tantrum"]:
- temp_a.remove(item)
- if Water is not 0:
- if item in ["Hydro Pump","Surf","Scald","Steam Eruption","Water Pulse","Water Shuriken","Waterfall","Liquidation","Aqua Tail","Water Spout"]:
- temp_a.remove(item)
- tempmoves.append(temp_a)
- for n in tempmoves:
- while len(n) < 4:
- n.append(n[0])
- newmoves.append(tuple(n))
- return newmoves
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement