mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 17:53:35 +00:00
Fix Z when following during pull, not when engaged and stationary or moving slightly
This commit is contained in:
1 parent
e4f337edb6
commit
9b1a449fba
1 file changed
+4
-1
+4
-1
@@ -996,8 +996,11 @@ void Mob::AI_Process() {
|
||||
|
||||
if (engaged) {
|
||||
|
||||
/* Fix Z when following during pull, not when engaged and stationary */
|
||||
if (moving && fix_z_timer_engaged.Check())
|
||||
this->FixZ();
|
||||
if(this->GetTarget())
|
||||
if(DistanceNoZ(this->GetPosition(), this->GetTarget()->GetPosition()) > 50)
|
||||
this->FixZ();
|
||||
|
||||
if (!(m_PlayerState & static_cast<uint32>(PlayerState::Aggressive)))
|
||||
SendAddPlayerState(PlayerState::Aggressive);
|
||||
|
||||
Reference in new issue
Block a user