瀏覽代碼

Clan war targetting fix: now holding ctrl is necessary unless both clans declare war each other. Thanks GodKratos

DrHouse 16 年之前
父節點
當前提交
6ed1621518
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

+ 1 - 0
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

@@ -7674,6 +7674,7 @@ public final class L2PcInstance extends L2PlayableInstance
 				// Check if clan is at war
 				if (getClan() != null && ((L2PcInstance)attacker).getClan() != null
 				                           && (getClan().isAtWarWith(((L2PcInstance)attacker).getClanId())
+				                           && ((L2PcInstance)attacker).getClan().isAtWarWith(getClanId())
 				                           && getWantsPeace() == 0
 				                           && ((L2PcInstance)attacker).getWantsPeace() == 0
 				                           && !isAcademyMember()))