Skip to content

Commit d105748

Browse files
committed
When importing skills, import their prerequisites as well
1 parent f965497 commit d105748

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gui/characterEditor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ def importSkills(self, evt):
446446

447447
text = fromClipboard().strip()
448448
if text:
449+
sCharacter = Character.getInstance()
449450
char = self.charEditor.entityEditor.getActiveEntity()
450451
try:
451452
lines = text.splitlines()
@@ -455,7 +456,7 @@ def importSkills(self, evt):
455456
skill, level = s.rsplit(None, 1)[0], arabicOrRomanToInt(s.rsplit(None, 1)[1])
456457
skill = char.getSkill(skill)
457458
if skill:
458-
skill.setLevel(level, ignoreRestrict=True)
459+
sCharacter.changeLevel(char.ID, skill.item.ID, level)
459460

460461
except (KeyboardInterrupt, SystemExit):
461462
raise

0 commit comments

Comments
 (0)