All pastes #46183 Raw Edit

Someone

public text v1 · immutable
#46183 ·published 2006-03-19 00:34 UTC
rendered paste body
Index: C:/eclipse/workspace/L2J/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- C:/eclipse/workspace/L2J/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 1621)
+++ C:/eclipse/workspace/L2J/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -5092,7 +5092,7 @@
         }
         else if (skill.isOffensive())
         {
-            if (isInsidePeaceZone(this, target))
+            if ((isInsidePeaceZone(this, target)) && (getAccessLevel() < Config.GM_PEACEATTACK))
 
             {
                 // If L2Character or target is in a peace zone, send a system message TARGET_IN_PEACEZONE a Server->Client packet ActionFailed
@@ -5100,7 +5100,7 @@
                 sendPacket(new ActionFailed());
                 return;
             }
-            else if (target != null && !target.isAttackable())
+            else if (target != null && !target.isAttackable() && (getAccessLevel() < Config.GM_PEACEATTACK))
             {
                 // If target is not attackable, send a Server->Client packet ActionFailed
                 sendPacket(new ActionFailed());
Index: C:/eclipse/workspace/L2J/java/net/sf/l2j/gameserver/model/L2Character.java
===================================================================
--- C:/eclipse/workspace/L2J/java/net/sf/l2j/gameserver/model/L2Character.java	(revision 1621)
+++ C:/eclipse/workspace/L2J/java/net/sf/l2j/gameserver/model/L2Character.java	(working copy)
@@ -3758,7 +3758,7 @@
            player.sendPacket(new SystemMessage(SystemMessage.TARGET_IN_PEACEZONE));
            player.sendPacket(new ActionFailed());
        }
-       else if (player.getTarget() != null && !player.getTarget().isAttackable())
+       else if (player.getTarget() != null && !player.getTarget().isAttackable() && (player.getAccessLevel() < Config.GM_PEACEATTACK))
        {
            // If target is not attackable, send a Server->Client packet ActionFailed
            player.sendPacket(new ActionFailed());
@@ -3791,7 +3791,7 @@
    }
 
    /**
-    * Return Ture if inside peace zone.<BR><BR>
+    * Return True if inside peace zone.<BR><BR>
     */
    public boolean isInsidePeaceZone(L2PcInstance attacker)
    {