mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 00:27:44 +00:00
Stop bnpcs from moving when they have an active action #2
This commit is contained in:
parent
996717250d
commit
25ab437d3d
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ void AI::Fsm::StateCombat::onUpdate( Entity::BNpc& bnpc, uint64_t tickCount )
|
|||
|
||||
pNaviProvider->syncPosToChara( bnpc );
|
||||
|
||||
if( distance < ( bnpc.getNaviTargetReachedDistance() + pHatedActor->getRadius() ) )
|
||||
if( !hasQueuedAction && distance < ( bnpc.getNaviTargetReachedDistance() + pHatedActor->getRadius() ) )
|
||||
{
|
||||
// todo: dont turn if facing
|
||||
if( !bnpc.hasFlag( Entity::TurningDisabled ) )
|
||||
|
|
Loading…
Add table
Reference in a new issue