浏览代码

Fix for AIOOBE. NC failed again with SC lvl 13 rename (still wrong).

JIV 15 年之前
父节点
当前提交
b3ea2dd735
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      L2_GameServer/java/com/l2jserver/gameserver/model/actor/L2Attackable.java

+ 2 - 0
L2_GameServer/java/com/l2jserver/gameserver/model/actor/L2Attackable.java

@@ -2145,6 +2145,8 @@ public class L2Attackable extends L2Npc
 								{
 									// Split the name of the crystal into 'name' & 'level'
 									crystalNFO = item.getItem().getName().trim().replace(" Stage ", "").split("-");
+									if (crystalNFO.length != 2)
+										crystalNFO = item.getItem().getName().trim().replace(" Stage ", "").split(":");
 									// Get Level
 									crystalLVL = Integer.parseInt(crystalNFO[1].trim());
 								}