Skip to content

Commit

Permalink
Merge branch 'master' into abyssal-xml
Browse files Browse the repository at this point in the history
  • Loading branch information
m-sasha authored Dec 22, 2023
2 parents cdd7077 + d105748 commit f633314
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/characterEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ def importSkills(self, evt):

text = fromClipboard().strip()
if text:
sCharacter = Character.getInstance()
char = self.charEditor.entityEditor.getActiveEntity()
try:
lines = text.splitlines()
Expand All @@ -455,7 +456,7 @@ def importSkills(self, evt):
skill, level = s.rsplit(None, 1)[0], arabicOrRomanToInt(s.rsplit(None, 1)[1])
skill = char.getSkill(skill)
if skill:
skill.setLevel(level, ignoreRestrict=True)
sCharacter.changeLevel(char.ID, skill.item.ID, level)

except (KeyboardInterrupt, SystemExit):
raise
Expand Down

0 comments on commit f633314

Please sign in to comment.