- changed status to resolved
Agro mob with bow and canMove=false doesn't attack
Issue #25
resolved
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)
-
-
- Log in to comment
Continuing with AI refactoring
Fixes
#25→ <<cset 161a74f23f7d>>