Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
maghasemzadeh committed May 7, 2019
2 parents 4d66f62 + a21e224 commit 0e69618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/data/JsonParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ public static List<Card> getSpells() throws FileNotFoundException, JSONException
(String)
spellHashMap.get("targetType")
);
} catch (Exception e) {
e.printStackTrace();
}
} catch (Exception e) {}
spell.setTargetType(targetType);
List<Object> buffs = (List<Object>) spellHashMap.get("effect");
for(Object buffObject : buffs) {
Expand Down
4 changes: 2 additions & 2 deletions src/data/spell.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"name": "Fireball",
"price": 600,
"manaPoint": 3,
"targetType": {},
"targetType": "",
"effect": []
},
{
Expand All @@ -95,7 +95,7 @@
"name": "Poison Lake",
"price": 900,
"manaPoint": 5,
"targetType": {},
"targetType": "",
"effect": []
},
{
Expand Down

0 comments on commit 0e69618

Please sign in to comment.