Replace other intentions with idle when casting triggers stopMove.
This commit is contained in:
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -275,6 +275,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -274,6 +274,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -275,6 +275,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
@@ -275,6 +275,9 @@ public class SkillCaster implements Runnable
|
|||||||
if (!instantCast)
|
if (!instantCast)
|
||||||
{
|
{
|
||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce talisman mana on skill use
|
// Reduce talisman mana on skill use
|
||||||
|
Reference in New Issue
Block a user