mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-07-23 03:27:46 +00:00
Deaggro range changed to 40y after testing
This commit is contained in:
parent
ccbf6bea61
commit
a181b4ac4a
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ void AI::Fsm::StateCombat::onUpdate( Entity::BNpc& bnpc, uint64_t tickCount )
|
||||||
// All possibilities to automatically lose aggro go here
|
// All possibilities to automatically lose aggro go here
|
||||||
if( !bnpc.hasFlag( Entity::NoDeaggro ) )
|
if( !bnpc.hasFlag( Entity::NoDeaggro ) )
|
||||||
{
|
{
|
||||||
if( bnpc.hasFlag( Entity::Immobile ) && distance > 30.0f )
|
if( bnpc.hasFlag( Entity::Immobile ) && distance > 40.0f )
|
||||||
{
|
{
|
||||||
bnpc.deaggro( pHatedActor );
|
bnpc.deaggro( pHatedActor );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue