Skip to content

Commit f4733cb

Browse files
committed
fix opp_heroes on pick
1 parent 184b6ac commit f4733cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def _handle_pick_message(self, msg):
310310
self.my_heroes.append(my_hero)
311311
for hero in opp_heroes:
312312
for first_hero in self.heroes:
313-
if hero["type"] == first_hero.name:
313+
if HeroName[hero["type"]] == first_hero.name:
314314
opp_hero = copy.copy(first_hero)
315315
opp_hero.id = hero["id"]
316316
opp_hero.update_abilities([Ability(self._get_ability_constants(ability_name), 0) for ability_name

0 commit comments

Comments
 (0)