Replace other intentions with idle when casting triggers stopMove.
This commit is contained in:
parent
2713d25370
commit
8ce59ca662
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user