Browse Source

BETA: Fixing !OpenDoor effect that doesn't work for players without privileges.
Patch by: Zephyr
Reported by: Sdw, Zephyr
Reviewed by: Adry_85
Tested by: Adry_85

Adry_85 11 years ago
parent
commit
5efb00bc47

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

@@ -8932,7 +8932,7 @@ public final class L2PcInstance extends L2Playable
 				return false;
 			}
 			
-			if (!target.canBeAttacked() && !getAccessLevel().allowPeaceAttack())
+			if (!target.canBeAttacked() && !getAccessLevel().allowPeaceAttack() && !target.isDoor())
 			{
 				// If target is not attackable, send a Server->Client packet ActionFailed
 				sendPacket(ActionFailed.STATIC_PACKET);