mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-19 07:32:25 +00:00
One more check
This commit is contained in:
parent
f8b5637112
commit
786e03b0ac
@ -1004,7 +1004,7 @@ void Mob::AI_Process() {
|
||||
this->FixZ();
|
||||
}
|
||||
/* If we are close to client and our Z differences aren't big, match the client */
|
||||
else if (std::abs(this->GetZ() - this->GetTarget()->GetZ()) <= 5) {
|
||||
else if (std::abs(this->GetZ() - this->GetTarget()->GetZ()) <= 5 && this->GetTarget()->IsClient()) {
|
||||
this->m_Position.z = this->GetTarget()->GetZ();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user