Do not set AI intention to idle with stopMove method.
Contributed by Strelook66.
This commit is contained in:
@@ -5040,12 +5040,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
|||||||
_move = null;
|
_move = null;
|
||||||
_cursorKeyMovement = false;
|
_cursorKeyMovement = false;
|
||||||
|
|
||||||
// Set AI_INTENTION_IDLE
|
|
||||||
if ((this instanceof Player) && (getAI() != null))
|
|
||||||
{
|
|
||||||
((Player) this).getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the current position (x,y,z), its current WorldRegion if necessary and its heading
|
// Set the current position (x,y,z), its current WorldRegion if necessary and its heading
|
||||||
// All data are contained in a CharPosition object
|
// All data are contained in a CharPosition object
|
||||||
if (pos != null)
|
if (pos != null)
|
||||||
|
@@ -5086,12 +5086,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
|||||||
_move = null;
|
_move = null;
|
||||||
_cursorKeyMovement = false;
|
_cursorKeyMovement = false;
|
||||||
|
|
||||||
// Set AI_INTENTION_IDLE
|
|
||||||
if ((this instanceof Player) && (getAI() != null))
|
|
||||||
{
|
|
||||||
((Player) this).getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the current position (x,y,z), its current WorldRegion if necessary and its heading
|
// Set the current position (x,y,z), its current WorldRegion if necessary and its heading
|
||||||
// All data are contained in a CharPosition object
|
// All data are contained in a CharPosition object
|
||||||
if (pos != null)
|
if (pos != null)
|
||||||
|
Reference in New Issue
Block a user