diff --git a/src/engine/objects/MobEquipment.java b/src/engine/objects/MobEquipment.java index 0c9809a1..f2a81405 100644 --- a/src/engine/objects/MobEquipment.java +++ b/src/engine/objects/MobEquipment.java @@ -276,20 +276,23 @@ public class MobEquipment extends AbstractGameObject { if (itemBase != null) for (Integer token : itemBase.getBakedInStats().keySet()) { + try { + EffectsBase effect = PowersManager.getEffectByToken(token); - EffectsBase effect = PowersManager.getEffectByToken(token); + AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString()); + if (apa.getEffectsBase() != null) + if (apa.getEffectsBase().getValue() > 0) { + //System.out.println(apa.getEffectsBase().getValue()); + value += apa.getEffectsBase().getValue(); + } - AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString()); - if (apa.getEffectsBase() != null) - if (apa.getEffectsBase().getValue() > 0) { - //System.out.println(apa.getEffectsBase().getValue()); - value += apa.getEffectsBase().getValue(); - } + if (apa.getEffectsBase2() != null) + value += apa.getEffectsBase2().getValue(); - if (apa.getEffectsBase2() != null) - value += apa.getEffectsBase2().getValue(); - } + }catch(Exception e){ + } + } this.magicValue = (int) value; }