|
|
@ -1205,7 +1205,12 @@ public class CharacterItemManager { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static void stripTempEnchants(Item i) { |
|
|
|
private static void stripTempEnchants(Item i) { |
|
|
|
i.clearEffects(); |
|
|
|
//i.clearEffects();
|
|
|
|
|
|
|
|
for (String name : i.getEffects().keySet()) { |
|
|
|
|
|
|
|
Effect eff = i.getEffects().get(name); |
|
|
|
|
|
|
|
if (eff.getDuration() > 0.1f) |
|
|
|
|
|
|
|
i.endEffect(name); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//Used for buying MobEquipment from NPC
|
|
|
|
//Used for buying MobEquipment from NPC
|
|
|
|