Replace other intentions with idle for players only.

This commit is contained in:
MobiusDevelopment
2021-03-17 17:10:46 +00:00
parent 3c9e84dcd3
commit 565c791c6f
19 changed files with 76 additions and 19 deletions

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -277,8 +277,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -276,8 +276,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -277,8 +277,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))

View File

@@ -277,8 +277,11 @@ public class SkillCaster implements Runnable
caster.getAI().clientStopMoving(null);
// Also replace other intentions with idle. (Mainly done for AI_INTENTION_MOVE_TO).
if (caster.isPlayer())
{
caster.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Reduce talisman mana on skill use
if ((_skill.getReferenceItemId() > 0) && (ItemTable.getInstance().getTemplate(_skill.getReferenceItemId()).getBodyPart() == Item.SLOT_DECO))