Sfoglia il codice sorgente

Adding Light Worm restirction, thanks Loup_Solitaire.

Ahmed 17 anni fa
parent
commit
885acf0742

+ 12 - 3
L2_GameServer_T1/java/net/sf/l2j/gameserver/ai/L2CharacterAI.java

@@ -1157,9 +1157,18 @@ public class L2CharacterAI extends AbstractAI
             // water movement analysis
             if (_actor instanceof L2NpcInstance)
             {
-                // well, lol..
-                if (((L2NpcInstance)_actor).getNpcId() == 20314) // great white shark
-                    cannotMoveOnLand = true;
+            	int npcId = ((L2NpcInstance)_actor).getNpcId();
+            	
+            	switch (npcId)
+            	{
+            		case 20314:
+            		case 20849:
+            			cannotMoveOnLand = true;
+            			break;
+            		default:
+            			cannotMoveOnLand = false;
+            			break;
+            	}
             }
             // skill analysis
             for (L2Skill sk : _actor.getAllSkills())