浏览代码

this must've been missing after AI changes

Sami 16 年之前
父节点
当前提交
5e89ccdb72

+ 1 - 1
L2_GameServer/java/net/sf/l2j/gameserver/ai/L2AttackableAI.java

@@ -1384,7 +1384,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
 	protected void onEvtThink()
 	{
 		// Check if the thinking action is already in progress
-		if (_thinking || _actor.isCastingNow())
+		if (_thinking || _actor.isCastingNow() || _actor.isAllSkillsDisabled())
 			return;
 		
 		// Start thinking action

+ 1 - 1
L2_GameServer/java/net/sf/l2j/gameserver/ai/L2SiegeGuardAI.java

@@ -699,7 +699,7 @@ public class L2SiegeGuardAI extends L2CharacterAI implements Runnable
 		//          setIntention(AI_INTENTION_IDLE);
 		
 		// Check if the thinking action is already in progress
-		if (_thinking || _actor.isCastingNow())
+		if (_thinking || _actor.isCastingNow() || _actor.isAllSkillsDisabled())
 			return;
 		
 		// Start thinking action

+ 1 - 5
L2_GameServer/java/net/sf/l2j/gameserver/ai/L2SummonAI.java

@@ -84,8 +84,6 @@ public class L2SummonAI extends L2CharacterAI
 	
 	private void thinkPickUp()
 	{
-		if (_actor.isAllSkillsDisabled() || _actor.isCastingNow())
-			return;
 		if (checkTargetLost(getTarget()))
 			return;
 		if (maybeMoveToPawn(getTarget(), 36))
@@ -97,8 +95,6 @@ public class L2SummonAI extends L2CharacterAI
 	
 	private void thinkInteract()
 	{
-		if (_actor.isAllSkillsDisabled() || _actor.isCastingNow())
-			return;
 		if (checkTargetLost(getTarget()))
 			return;
 		if (maybeMoveToPawn(getTarget(), 36))
@@ -110,7 +106,7 @@ public class L2SummonAI extends L2CharacterAI
 	@Override
 	protected void onEvtThink()
 	{
-		if (_thinking || _actor.isCastingNow())
+		if (_thinking || _actor.isCastingNow() || _actor.isAllSkillsDisabled())
 			return;
 		_thinking = true;
 		try