Hello, A simple question. What would be the most efficient way to add a delay on nextActionIsAttack reference in L2Character? Example code below:
if ((skill.nextActionIsAttack()) && (getTarget() instanceof L2Character) && (getTarget() != this) && (target != null) && (getTarget() == target) && target.canBeAttacked())
{
if ((getAI().getNextIntention() == null) || (getAI().getNextIntention().getCtrlIntention() != CtrlIntention.AI_INTENTION_MOVE_TO))
{
getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target);
}
}
The reason for doing this is because it works pretty buggy overall. Specifically, sometimes the next attack doesn't take enough time to finish but it registers the damage which shouldn't be the case.