1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-30 08:07:46 +00:00

Update BNpc.cpp

This commit is contained in:
AriAvery 2019-02-06 23:29:51 +01:00
parent 9dbd53d9c0
commit 2dca8f9f72

View file

@ -523,8 +523,8 @@ void Sapphire::Entity::BNpc::update( int64_t currTime )
if( distance > minActorDistance )
{
auto pTeriMgr = m_pFw->get< World::Manager::TerritoryMgr >();
if ( ( currTime - m_lastAttack ) > 600 && pTeriMgr->isDefaultTerritory( getCurrentZone()->getTerritoryTypeId() ) )
//auto pTeriMgr = m_pFw->get< World::Manager::TerritoryMgr >();
//if ( ( currTime - m_lastAttack ) > 600 && pTeriMgr->isDefaultTerritory( getCurrentZone()->getTerritoryTypeId() ) )
moveTo( pHatedActor->getPos() );
}
else