瀏覽代碼

Players can't register to oly while participating on TvT event.

_DS_ 15 年之前
父節點
當前提交
1a389882dd
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      L2_GameServer/java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java

+ 5 - 0
L2_GameServer/java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java

@@ -512,6 +512,11 @@ public class Olympiad
 			noble.sendPacket(sm);
 			noble.sendPacket(sm);
 			return false;
 			return false;
 		}
 		}
+		if (TvTEvent.isPlayerParticipant(noble.getObjectId()))
+		{
+			noble.sendMessage("You can't join olympiad while participating on TvT Event.");
+			return false;
+		}
 		/** End Olympiad Restrictions */
 		/** End Olympiad Restrictions */
 		
 		
 		if (_classBasedRegisters.containsKey(noble.getClassId().getId()))
 		if (_classBasedRegisters.containsKey(noble.getClassId().getId()))