Skip to content

Commit

Permalink
Fix an issue where 2h weapons when rebirthing show no item (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustyJAID authored May 5, 2024
1 parent 408a76e commit 963eb86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adventure/charsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1656,9 +1656,10 @@ def keep_equipped(self):
item = getattr(self, slots.name)
if item and item.set and self.rebirths >= 30:
items_to_keep[slots.name] = item.to_json()
if self.left == self.right and self.right is not None:
if self.left == self.right and self.right is not None and self.left is not None:
if self.right.set and self.rebirths >= 30:
items_to_keep["right"] = self.right.to_json()
items_to_keep["left"] = self.left.to_json()
else:
if self.left and self.left.set and self.rebirths >= 30:
items_to_keep["left"] = self.left.to_json()
Expand Down

0 comments on commit 963eb86

Please sign in to comment.