diff --git a/typeChart.py b/typeChart.py index 6b95be4..7dfeffc 100644 --- a/typeChart.py +++ b/typeChart.py @@ -27,6 +27,7 @@ def __init__(self, weak, resist, immune): def match(attackType,defenseType): attackT = [tNormal,tFighting,tFlying,tBug,tGrass,tFire,tWater,tElectric,tGround,tRock,tSteel,tPoison,tGhost,tDark,tFairy,tPsychic,tDragon,tIce][attackType] + defenseT = [] defenseT[0] = [tNormal,tFighting,tFlying,tBug,tGrass,tFire,tWater,tElectric,tGround,tRock,tSteel,tPoison,tGhost,tDark,tFairy,tPsychic,tDragon,tIce][defenseType] if len(defenseT) > 1: defenseT[1] = [tNormal,tFighting,tFlying,tBug,tGrass,tFire,tWater,tElectric,tGround,tRock,tSteel,tPoison,tGhost,tDark,tFairy,tPsychic,tDragon,tIce][defenseType]