Skip to content

Commit

Permalink
fixed bug, died unit commented
Browse files Browse the repository at this point in the history
  • Loading branch information
HamidrezaKmK committed Feb 3, 2020
1 parent 06e66ab commit 4552bfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion model.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_value(string):
if string == "AIR":
return UnitTarget.AIR
if string == "BOTH":
return SpellType.BOTH
return UnitTarget.BOTH
return None


Expand Down
2 changes: 1 addition & 1 deletion world.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def _handle_turn_message(self, msg):
self.player.hand = [self._get_base_unit_by_id(hand_type_id) for hand_type_id in msg["hand"]]
self._handle_turn_kings(msg["kings"])
self._handle_turn_units(msg["units"])
self._handle_turn_units(msg=msg["diedUnits"], is_dead_unit=True)
#self._handle_turn_units(msg=msg["diedUnits"], is_dead_unit=True)
self._handle_turn_cast_spells(msg["castSpells"])

self.turn_updates = TurnUpdates(received_spell=msg["receivedSpell"],
Expand Down

0 comments on commit 4552bfb

Please sign in to comment.