Parcourir la source

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

DrHouse il y a 16 ans
Parent
commit
6ed1621518

+ 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()))