소스 검색

You cannot use any Skill while sitting. (Potions Only)

nBd 17 년 전
부모
커밋
da84f33ce2
1개의 변경된 파일11개의 추가작업 그리고 11개의 파일을 삭제
  1. 11 11
      L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

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

@@ -7600,6 +7600,17 @@ public final class L2PcInstance extends L2PlayableInstance
             sendPacket(ActionFailed.STATIC_PACKET);
             return;
         }
+        
+        // Check if the caster is sitting
+        if (isSitting() && !skill.isPotion())
+        {
+            // Send a System Message to the caster
+            sendPacket(new SystemMessage(SystemMessageId.CANT_MOVE_SITTING));
+
+            // Send a Server->Client packet ActionFailed to the L2PcInstance
+            sendPacket(ActionFailed.STATIC_PACKET);
+            return;
+        }
 
 		// Check if the skill type is TOGGLE
 		if (skill.isToggle())
@@ -7776,17 +7787,6 @@ public final class L2PcInstance extends L2PlayableInstance
             return;
         }
 
-        // Check if the caster is sitting
-        if (isSitting() && !skill.isPotion())
-        {
-            // Send a System Message to the caster
-            sendPacket(new SystemMessage(SystemMessageId.CANT_MOVE_SITTING));
-
-            // Send a Server->Client packet ActionFailed to the L2PcInstance
-            sendPacket(ActionFailed.STATIC_PACKET);
-            return;
-        }
-
         if (isFishing() && (sklType != SkillType.PUMPING &&
         		sklType != SkillType.REELING && sklType != SkillType.FISHING))
         {