mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 15:17:46 +00:00
Update BNpc.cpp
This commit is contained in:
parent
0411fc8da3
commit
9dbd53d9c0
1 changed files with 1 additions and 2 deletions
|
@ -523,9 +523,8 @@ void Sapphire::Entity::BNpc::update( int64_t currTime )
|
|||
|
||||
if( distance > minActorDistance )
|
||||
{
|
||||
uint64_t tick = Util::getTimeMs();
|
||||
auto pTeriMgr = m_pFw->get< World::Manager::TerritoryMgr >();
|
||||
if ( ( tick - m_lastAttack ) > 600 && pTeriMgr->isDefaultTerritory( getCurrentZone()->getTerritoryTypeId() ) )
|
||||
if ( ( currTime - m_lastAttack ) > 600 && pTeriMgr->isDefaultTerritory( getCurrentZone()->getTerritoryTypeId() ) )
|
||||
moveTo( pHatedActor->getPos() );
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue