Fixed training soldier AI.

This commit is contained in:
MobiusDev
2018-08-30 18:53:14 +00:00
parent d9a076ccd7
commit 2dbfdef0a8
9 changed files with 74 additions and 111 deletions

View File

@ -1171,13 +1171,8 @@ public class L2AttackableAI extends L2CharacterAI
@Override
protected void onEvtThink()
{
// Check if the actor can't use skills
if (getActiveChar().isAllSkillsDisabled())
{
return;
}
// Check if a thinking action isn't already in progress
if (_thinking)
// Check if the actor can't use skills and if a thinking action isn't already in progress
if (_thinking || getActiveChar().isAllSkillsDisabled())
{
return;
}