瀏覽代碼

Fix alternative class master not show on change subclass

Reported by: PoRnosJH
Zealar 9 年之前
父節點
當前提交
df095a0c7e
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      L2J_Server/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

+ 7 - 0
L2J_Server/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

@@ -10336,6 +10336,13 @@ public final class L2PcInstance extends L2Playable
 			sendPacket(new SkillCoolTime(this));
 			sendPacket(new SkillCoolTime(this));
 			sendPacket(new ExStorageMaxCount(this));
 			sendPacket(new ExStorageMaxCount(this));
 			
 			
+			if (Config.ALTERNATE_CLASS_MASTER)
+			{
+				if (Config.CLASS_MASTER_SETTINGS.isAllowed(getClassId().level() + 1) && Config.ALTERNATE_CLASS_MASTER && (((this.getClassId().level() == 1) && (this.getLevel() >= 40)) || ((this.getClassId().level() == 2) && (this.getLevel() >= 76))))
+				{
+					L2ClassMasterInstance.showQuestionMark(this);
+				}
+			}
 			return true;
 			return true;
 		}
 		}
 		finally
 		finally