Skip to content

Commit 2806799

Browse files
Prevent Pokemon that hold a Z-Crystal or Mega Stone from counting Tera type (smogon#8)
1 parent fa5bd8f commit 2806799

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

batchLogReader.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,15 @@ def getTeamsFromLog(log,mrayAllowed):
9797

9898
if 'teraType' in log[team][i].keys():
9999
teraType = keyify(log[team][i]['teraType'])
100-
if teraType == '':
100+
if teraType == '' or item.endswith('iumz'):
101101
teraType = 'nothing'
102102
else:
103103
teraType = 'nothing'
104104

105105
if species == 'rayquaza' and 'dragonascent' in moves and mrayAllowed:
106106
species='rayquazamega'
107107
ability='deltastream'
108+
teraType = 'nothing'
108109
elif species == 'greninja' and ability == 'battlebond':
109110
species = 'greninjaash'
110111
elif species == 'zacian' and item == 'rustedsword':
@@ -122,6 +123,7 @@ def getTeamsFromLog(log,mrayAllowed):
122123
if species in ['kyogremega','groudonmega']:
123124
species=species[:-4]+'primal'
124125
ability=mega[2]
126+
teraType = 'nothing'
125127
break
126128

127129
if species[0] in string.ascii_lowercase or species[1] in string.ascii_uppercase:

0 commit comments

Comments
 (0)