diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 9c3064f1..ab20b087 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -107,7 +107,8 @@ public class ItemTemplate { Object skills_used = jsonObject.get("item_skill_used"); - if (skills_used != null) - item_skill_used.add(Enum.CharacterSkills.Axe); + if (skills_used instanceof JSONArray) + for (Object o : (JSONArray) skills_used) + item_skill_used.add(Enum.CharacterSkills.valueOf((String) o)); } }