Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- print 'Content-Type: text/html\n\n'
- import cgi, cgitb, random
- cgitb.enable()
- moves = open('pokemonmovelist.csv', 'r')
- pokemon = open('pokemonstuff.csv','r')
- movething=moves.read()
- pokemonthing=pokemon.read()
- moveList = movething.replace('\n', ' ').replace(',',' ').split()
- pokemonList =pokemonthing.replace('\n', ' ').replace(',',' ').split()
- form=cgi.FieldStorage()
- def typea(x):
- pokemonindex=''
- listindex=0
- primarytype=''
- pokemonindex+= str(x)
- if pokemonindex in pokemonList:
- listindex+=int(pokemonList.index(pokemonindex))
- primarytype+=pokemonList[((listindex)+11)]
- return primarytype
- def typeb(x):
- pokemonindex2=''
- listindex2=0
- secondarytype=''
- pokemonindex2+= str(x)
- if pokemonindex2 in pokemonList:
- listindex2+=int(pokemonList.index(pokemonindex2))
- secondarytype+=pokemonList[((listindex2)+12)]
- return secondarytype
- def checkmovetype(x):
- moveindex=''
- movenumber=0
- moveposition=0
- moveindex+= str(x)
- if moveindex in moveList:
- movenumber+=(moveList.index(moveindex))
- moveposition+=(int(movenumber+1))
- return moveList[moveposition]
- def modifier():
- stagecalc1=0
- stagecalc2=0
- base=0
- if form['stage1'].value == -6:
- stagecalc1+=.25
- if form['stage1'].value == -5:
- stagecalc1+=.2857
- if form['stage1'].value == -4:
- stagecalc1+=.3333
- if form['stage1'].value == -3:
- stagecalc1+=.4
- if form['stage1'].value == -2:
- stagecalc1+=.5
- if form['stage1'].value == -1:
- stagecalc1+=.6667
- if form['stage1'].value == 0:
- stagecalc1+=1
- if form['stage1'].value == 1:
- stagecalc1+=1.5
- if form['stage1'].value == 2:
- stagecalc1+=2
- if form['stage1'].value == 3:
- stagecalc1+=2.5
- if form['stage1'].value == 4:
- stagecalc1+=3
- if form['stage1'].value == 5:
- stagecalc1+=3.5
- if form['stage1'].value == 6:
- stagecalc1+=4
- return stagecalc1
- if form['stage2'].value == 6:
- stagecalc2+=.25
- if form['stage2'].value == 5:
- stagecalc2+=.2857
- if form['stage2'].value == 4:
- stagecalc2+=.3333
- if form['stage2'].value == 3:
- stagecalc2+=.4
- if form['stage2'].value == 2:
- stagecalc2+=.5
- if form['stage2'].value == 1:
- stagecalc2+=.6667
- if form['stage2'].value == 0:
- stagecalc2+=1
- if form['stage2'].value == -1:
- stagecalc2+=1.5
- if form['stage2'].value == -2:
- stagecalc2+=2
- if form['stage2'].value == -3:
- stagecalc2+=2.5
- if form['stage2'].value == -4:
- stagecalc2+=3
- if form['stage2'].value == -5:
- stagecalc2+=3.5
- if form['stage2'].value == -6:
- stagecalc2+=4
- return stagecalc2
- base +=((int(stagecalc1)) * (int(stagecalc2)))
- return base
- def getdamage():
- damage=0
- level=0
- attack=0
- defense=0
- y=''
- basedamage=0
- basedamageindex=0
- t=''
- if 'atk' in form and 'def' in form and 'move' in form and 'stage1' in form and 'stage2' in form and 'level1' in form and 'level2' in form and 'pokemon1' in form and 'pokemon2' in form:
- level+=int(form['level1'].value)
- attack+=int(form['atk'].value)
- defense+=int(form['def'].value)
- y+=(form['pokemon2'].value)
- t+= (form['move'].value)
- if t in moveList:
- basedamageindex += ((int((moveList.index(t)))) +3)
- basedamage+=(int(moveList[basedamageindex]))
- if basedamage > 0:
- damage+= (((2 * (level) + 10)/250)*((attack)/(defense))*((basedamage)+2))
- if checkmovetype(t) =='Normal' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Normal' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Normal' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Normal' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Normal' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Normal' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Normal' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Normal' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Normal' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Normal' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Normal' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Normal' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Normal' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Normal' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=0
- if checkmovetype(t) =='Normal' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fire' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fire' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fire' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Fire' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fire' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Fire' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Fire' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fire' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fire' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fire' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fire' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fire' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Fire' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Fire' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fire' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Water' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Water' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Water' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Water' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Water' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Water' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Water' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Water' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Water' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Water' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Water' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Water' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Water' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Water' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Water' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Grass' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Grass' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Grass' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Grass' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Grass' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Grass' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Grass' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Grass' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Grass' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Grass' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Grass' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Grass' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Grass' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Grass' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Grass' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Ice' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ice' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ice' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Ice' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ice' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Ice' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Ice' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ice' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ice' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Ice' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Ice' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ice' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ice' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ice' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ice' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Fighting' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Fighting' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fighting' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fighting' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fighting' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fighting' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Fighting' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fighting' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Fighting' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Fighting' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Fighting' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Fighting' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Fighting' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Fighting' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=0
- if checkmovetype(t) =='Fighting' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Poison' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Poison' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Poison' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Poison' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Poison' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Poison' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Poison' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Poison' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Poison' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Poison' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Poison' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Poison' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Poison' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Poison' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Poison' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ground' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ground' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Ground' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ground' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Ground' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Ground' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ground' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ground' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Ground' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ground' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=0
- if checkmovetype(t) =='Ground' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ground' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Ground' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Ground' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ground' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Flying' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Flying' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Flying' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Flying' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Flying' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Flying' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Flying' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Flying' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Flying' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Flying' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Flying' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Flying' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Flying' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Flying' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Flying' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Psychic' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Psychic' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Psychic' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Psychic' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Psychic' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Psychic' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Psychic' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Psychic' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Psychic' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Psychic' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Psychic' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Psychic' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Psychic' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Psychic' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Psychic' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Bug' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Bug' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Bug' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Bug' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Bug' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Bug' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Bug' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Bug' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Bug' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Bug' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Bug' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Bug' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Bug' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Bug' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Bug' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Rock' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Rock' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Rock' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Rock' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Rock' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Rock' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Rock' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Rock' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Rock' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=0.5
- if checkmovetype(t) =='Rock' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Rock' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Rock' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Rock' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Rock' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Rock' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ghost' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=0
- if checkmovetype(t) =='Ghost' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ghost' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ghost' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ghost' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ghost' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ghost' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ghost' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ghost' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ghost' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ghost' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=0
- if checkmovetype(t) =='Ghost' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ghost' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Ghost' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) =='Ghost' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Normal' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Fire' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Water' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Electric' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Grass' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Ice' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Fighting' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Poison' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Ground' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Flying' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Psychic' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Bug' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Rock' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Ghost' and typeb(y) == 'N/A':
- damage*=1
- if checkmovetype(t) =='Dragon' and typea(y) == 'Dragon' and typeb(y) == 'N/A':
- damage*=2
- if checkmovetype(t) == 'Normal' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *= 1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=0.5
- if checkmovetype(t) == 'Flying' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=2
- if checkmovetype(t) == 'Poison' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=1
- if checkmovetype(t) == 'Rock' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=1
- if checkmovetype(t) == 'Bug' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=1
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=2
- if checkmovetype(t) == 'Water' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=0.5
- if checkmovetype(t) == 'Grass' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=0.25
- if checkmovetype(t) == 'Electric' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=0.5
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=2
- if checkmovetype(t) == 'Ice' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=2
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Grass' and\
- typeb(y) == 'Poison':
- damage *=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=0.5
- if checkmovetype(t) == 'Flying' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Poison' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=0
- if checkmovetype(t) == 'Rock' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=4
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=0.5
- if checkmovetype(t) == 'Water' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=2
- if checkmovetype(t) == 'Grass' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=0.25
- if checkmovetype(t) == 'Electric' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=2
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Ice' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Fire' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=0.25
- if checkmovetype(t) == 'Flying' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=2
- if checkmovetype(t) == 'Poison' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=0
- if checkmovetype(t) == 'Rock' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=4
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=2
- if checkmovetype(t) == 'Water' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Grass' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=0.25
- if checkmovetype(t) == 'Electric' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=2
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Ice' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=2
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Bug' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=0.25
- if checkmovetype(t) == 'Flying' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=2
- if checkmovetype(t) == 'Poison' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=0.5
- if checkmovetype(t) == 'Ground' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Rock' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=2
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=0.2
- if checkmovetype(t) == 'Water' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Grass' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=0.25
- if checkmovetype(t) == 'Electric' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=2
- if checkmovetype(t) == 'Ice' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Flying' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Poison' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=0
- if checkmovetype(t) == 'Rock' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=2
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=0
- if checkmovetype(t) == 'Fire' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Water' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Grass' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=0.5
- if checkmovetype(t) == 'Electric' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=2
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Ice' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=2
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Normal' and\
- typeb(y) =='Flying':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=0.5
- if checkmovetype(t) == 'Flying' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=1
- if checkmovetype(t) == 'Poison' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=0.5
- if checkmovetype(t) == 'Ground' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=2
- if checkmovetype(t) == 'Rock' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=0.5
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=1
- if checkmovetype(t) == 'Water' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=2
- if checkmovetype(t) == 'Grass' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=1
- if checkmovetype(t) == 'Electric' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=0
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=2
- if checkmovetype(t) == 'Ice' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=2
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Poison' and\
- typeb(y) == 'Ground':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=0.25
- if checkmovetype(t) == 'Flying' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Poison' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Ground' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=0
- if checkmovetype(t) == 'Rock' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=2
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Water' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Grass' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=0.25
- if checkmovetype(t) == 'Electric' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=2
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=2
- if checkmovetype(t) == 'Ice' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=2
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Poison' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=0.5
- if checkmovetype(t) == 'Flying' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=4
- if checkmovetype(t) == 'Poison' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=2
- if checkmovetype(t) == 'Ground' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=0.25
- if checkmovetype(t) == 'Rock' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=2
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=4
- if checkmovetype(t) == 'Water' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=0.5
- if checkmovetype(t) == 'Grass' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=0.25
- if checkmovetype(t) == 'Electric' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=0.5
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=1
- if checkmovetype(t) == 'Ice' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=2
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Bug' and\
- typeb(y) == 'Grass':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=0.25
- if checkmovetype(t) == 'Flying' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=2
- if checkmovetype(t) == 'Poison' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=0.5
- if checkmovetype(t) == 'Ground' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Rock' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=2
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=2
- if checkmovetype(t) == 'Water' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Grass' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=0.25
- if checkmovetype(t) == 'Electric' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=2
- if checkmovetype(t) == 'Ice' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Bug' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=1
- if checkmovetype(t) == 'Flying' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=2
- if checkmovetype(t) == 'Poison' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=1
- if checkmovetype(t) == 'Rock' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=0.5
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=0.5
- if checkmovetype(t) == 'Water' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=0.5
- if checkmovetype(t) == 'Grass' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=2
- if checkmovetype(t) == 'Electric' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=2
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=2
- if checkmovetype(t) == 'Ice' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=0.5
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Water' and\
- typeb(y) == 'Fighting':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=0.5
- if checkmovetype(t) == 'Flying' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Poison' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=0.5
- if checkmovetype(t) == 'Ground' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=2
- if checkmovetype(t) == 'Rock' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=0.5
- if checkmovetype(t) == 'Water' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=0.5
- if checkmovetype(t) == 'Grass' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Electric' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=2
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=2
- if checkmovetype(t) == 'Ice' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=0.5
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Water' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=0.5
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=2
- if checkmovetype(t) == 'Flying' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=0.5
- if checkmovetype(t) == 'Poison' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=0.25
- if checkmovetype(t) == 'Ground' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=2
- if checkmovetype(t) == 'Rock' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=0.5
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=0.5
- if checkmovetype(t) == 'Water' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=4
- if checkmovetype(t) == 'Grass' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=4
- if checkmovetype(t) == 'Electric' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=0
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=1
- if checkmovetype(t) == 'Ice' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=2
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Rock' and\
- typeb(y) == 'Ground':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Flying' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Poison' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Rock' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=0
- if checkmovetype(t) == 'Fire' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Water' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Grass' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=2
- if checkmovetype(t) == 'Electric' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=2
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Ice' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Water' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=2
- if checkmovetype(t) == 'Flying' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=1
- if checkmovetype(t) == 'Poison' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=1
- if checkmovetype(t) == 'Rock' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=2
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=0.5
- if checkmovetype(t) == 'Water' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=0.5
- if checkmovetype(t) == 'Grass' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=2
- if checkmovetype(t) == 'Electric' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=2
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=1
- if checkmovetype(t) == 'Ice' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=0.25
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Water' and\
- typeb(y) == 'Ice':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=0
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=0
- if checkmovetype(t) == 'Flying' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Poison' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=0.25
- if checkmovetype(t) == 'Ground' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=2
- if checkmovetype(t) == 'Rock' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=2
- if checkmovetype(t) == 'Fire' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Water' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Grass' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=0.5
- if checkmovetype(t) == 'Electric' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=2
- if checkmovetype(t) == 'Ice' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Ghost' and\
- typeb(y) == 'Poison':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Flying' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=2
- if checkmovetype(t) == 'Poison' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=2
- if checkmovetype(t) == 'Ground' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Rock' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=0
- if checkmovetype(t) == 'Fire' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=2
- if checkmovetype(t) == 'Water' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Grass' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Electric' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Ice' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=2
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Grass' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Flying' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Poison' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Rock' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=2
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=0
- if checkmovetype(t) == 'Fire' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=2
- if checkmovetype(t) == 'Water' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Grass' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Electric' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Ice' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=0.5
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Ice' and\
- typeb(y) == 'Psychic':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Flying' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Poison' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=0
- if checkmovetype(t) == 'Rock' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=2
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Water' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Grass' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Electric' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=4
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Ice' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Water' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=0.5
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=2
- if checkmovetype(t) == 'Flying' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=0.5
- if checkmovetype(t) == 'Poison' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=2
- if checkmovetype(t) == 'Rock' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=1
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=0.25
- if checkmovetype(t) == 'Water' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=1
- if checkmovetype(t) == 'Grass' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=4
- if checkmovetype(t) == 'Electric' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=2
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=1
- if checkmovetype(t) == 'Ice' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=0.5
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Rock' and\
- typeb(y) == 'Water':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Flying' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Poison' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=0
- if checkmovetype(t) == 'Rock' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=2
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Water' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=2
- if checkmovetype(t) == 'Grass' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Electric' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=2
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Ice' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=2
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Rock' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Flying' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Poison' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=0
- if checkmovetype(t) == 'Rock' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=4
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Water' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Grass' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Electric' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=2
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Ice' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Ice' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Flying' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Poison' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=0
- if checkmovetype(t) == 'Rock' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=2
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Water' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Grass' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Electric' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Ice' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=2
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Electric' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Normal' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Fighting' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Flying' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Poison' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Ground' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=0
- if checkmovetype(t) == 'Rock' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=2
- if checkmovetype(t) == 'Ghost' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Fire' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Water' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Grass' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=0.5
- if checkmovetype(t) == 'Electric' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Psychic' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=1
- if checkmovetype(t) == 'Ice' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=4
- if checkmovetype(t) == 'Dragon' and typea(y) == 'Dragon' and\
- typeb(y) == 'Flying':
- damage*=2
- return damage
- print '''<html><body>The damage output should be about ~'''
- print getdamage()
- print '''</body></html>'''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement