소스 검색

According to retail: "The player wielding Zariche cannot give or accept buffs and may not be healed or heal other players. However, he or she may use buffs and heal themselves.", cursed weapon wielder cannot receive clan hall magic support either

DrHouse 16 년 전
부모
커밋
49f1d03e54
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2ClanHallManagerInstance.java

+ 6 - 0
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2ClanHallManagerInstance.java

@@ -1249,6 +1249,12 @@ public class L2ClanHallManagerInstance extends L2MerchantInstance
             }
             else if (actualCommand.equalsIgnoreCase("support"))
             {
+            	if (player.isCursedWeaponEquipped())
+            	{
+            		// Custom system message
+            		player.sendMessage("The wielder of a cursed weapon cannot receive outside heals or buffs");
+            		return;
+            	}
                 setTarget(player);
                 L2Skill skill;
                 if (val == "") return;