Fixed parsing issue in ActorCondition.

The full round effect's visual effect was not read from the correct
field, causing NPEs.
This commit is contained in:
Zukero
2017-10-24 11:38:47 +02:00
parent 33260137d9
commit cbc101b3b1

View File

@@ -208,7 +208,7 @@ public class ActorCondition extends JSONElement {
this.full_round_effect.ap_boost_max = JSONElement.getInteger((Number) (((Map)fullRoundEffect.get("increaseCurrentAP")).get("max")));
this.full_round_effect.ap_boost_min = JSONElement.getInteger((Number) (((Map)fullRoundEffect.get("increaseCurrentAP")).get("min")));
}
String vfx = (String) roundEffect.get("visualEffectID");
String vfx = (String) fullRoundEffect.get("visualEffectID");
this.full_round_effect.visual_effect = null;
if (vfx != null) {
try {