forked from MagicBane/Server
Durability and initial charges migrated to template.
This commit is contained in:
@@ -2444,13 +2444,14 @@ public class CharacterItemManager {
|
||||
return;
|
||||
|
||||
//don't damage noob gear, hair or beards.
|
||||
if (item.getDurabilityMax() == 0)
|
||||
if (item.template.item_health_full == 0)
|
||||
return;
|
||||
|
||||
if (!item.isCanDestroy())
|
||||
return;
|
||||
|
||||
int dur = (int) (short) item.durabilityCurrent;
|
||||
|
||||
if (dur - amount <= 0) {
|
||||
//destroy the item
|
||||
junk(item);
|
||||
|
||||
Reference in New Issue
Block a user