Browse Source

Clanhall doors can't be attacked.

_DS_ 15 năm trước cách đây
mục cha
commit
ee218b62d1

+ 4 - 1
L2_GameServer/java/com/l2jserver/gameserver/model/actor/instance/L2DoorInstance.java

@@ -380,7 +380,10 @@ public class L2DoorInstance extends L2Character
 		// Doors can`t be attacked by NPCs
 		if (!(attacker instanceof L2Playable))
 			return false;
-		
+
+		if (getClanHall() != null)
+			return false;
+
 		// Attackable  only during siege by everyone (not owner)
 		boolean isCastle = (getCastle() != null && getCastle().getCastleId() > 0 && getCastle().getSiege().getIsInProgress());
         boolean isFort = (getFort() != null && getFort().getFortId() > 0 && getFort().getSiege().getIsInProgress() && !getIsCommanderDoor());