Using skills with shift or /useskillstand auto attack should not be executed.
Contributed by Sahar.
This commit is contained in:
parent
193e78ad3a
commit
1304c34d2f
@ -5511,7 +5511,19 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
final IntentionCommand nextIntention = getAI().getNextIntention();
|
||||
if ((nextIntention == null) || (nextIntention.getCtrlIntention() != CtrlIntention.AI_INTENTION_MOVE_TO))
|
||||
{
|
||||
getAI().setIntention(AI_INTENTION_ATTACK, target);
|
||||
if (isPlayer())
|
||||
{
|
||||
final PlayerInstance currPlayer = getActingPlayer();
|
||||
final SkillUseHolder currSkill = currPlayer.getCurrentSkill();
|
||||
if ((currSkill == null) || !currSkill.isShiftPressed())
|
||||
{
|
||||
getAI().setIntention(AI_INTENTION_ATTACK, target);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
getAI().setIntention(AI_INTENTION_ATTACK, target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5513,7 +5513,19 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
final IntentionCommand nextIntention = getAI().getNextIntention();
|
||||
if ((nextIntention == null) || (nextIntention.getCtrlIntention() != CtrlIntention.AI_INTENTION_MOVE_TO))
|
||||
{
|
||||
getAI().setIntention(AI_INTENTION_ATTACK, target);
|
||||
if (isPlayer())
|
||||
{
|
||||
final PlayerInstance currPlayer = getActingPlayer();
|
||||
final SkillUseHolder currSkill = currPlayer.getCurrentSkill();
|
||||
if ((currSkill == null) || !currSkill.isShiftPressed())
|
||||
{
|
||||
getAI().setIntention(AI_INTENTION_ATTACK, target);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
getAI().setIntention(AI_INTENTION_ATTACK, target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user