فهرست منبع

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;