Quellcode durchsuchen

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

nBd vor 17 Jahren
Ursprung
Commit
da84f33ce2

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