Browse Source

BETA: Fixing an issue which appears while moving and requesting some actions like private store or sit, looks like AI is still in MOVE_TO intention and it get's changed after 2.5 seconds and within this time the character is still moving no matter that it is sited down already.
* Patch by: Tryskell

Rumen Nikiforov 12 years ago
parent
commit
738beb6271

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

@@ -3431,6 +3431,7 @@ public final class L2PcInstance extends L2Playable
 		{
 			breakAttack();
 			setIsSitting(true);
+			getAI().setIntention(CtrlIntention.AI_INTENTION_REST);
 			broadcastPacket(new ChangeWaitType(this, ChangeWaitType.WT_SITTING));
 			// Schedule a sit down task to wait for the animation to finish
 			ThreadPoolManager.getInstance().scheduleGeneral(new SitDownTask(), 2500);
@@ -3447,7 +3448,6 @@ public final class L2PcInstance extends L2Playable
 		public void run()
 		{
 			setIsParalyzed(false);
-			getAI().setIntention(CtrlIntention.AI_INTENTION_REST);
 		}
 	}