Replace other intentions with idle for non bad skills.
Contributed by Trance.
This commit is contained in:
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -277,7 +277,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -276,7 +276,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -277,7 +277,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
@@ -277,7 +277,7 @@ public class SkillCaster implements Runnable
|
|||||||
caster.getAI().clientStopMoving(null);
|
caster.getAI().clientStopMoving(null);
|
||||||
|
|
||||||
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
|
||||||
if (caster.isPlayer())
|
if (caster.isPlayer() && !_skill.isBad())
|
||||||
{
|
{
|
||||||
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user