Agro mob with bow and canMove=false doesn't attack

Issue #25 resolved
Sahar Atias created an issue

Old bug and still valid, if you run around a mob who is movementDisabled but can still attack (because it has a bow), it will not attack. It will start attacking only when the character will stop moving and stand still.

The bug is caused because the AI aborts at this check:

// Immobilize Condition
        if ((npc.isMovementDisabled() && ((dist > range) || mostHate.isMoving())) || ((dist > range) && mostHate.isMoving()))
        {
            movementDisable();
            return;
        }

Comments (2)

  1. Log in to comment