mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-18 19:41:30 +00:00
LoS Drop when close adjustment
This commit is contained in:
parent
b2b447516d
commit
0b489bc507
@ -1001,7 +1001,7 @@ void Mob::AI_Process() {
|
|||||||
if (this->GetTarget()) {
|
if (this->GetTarget()) {
|
||||||
/* If we are engaged, moving and following client, let's look for best Z more often */
|
/* If we are engaged, moving and following client, let's look for best Z more often */
|
||||||
float target_distance = DistanceNoZ(this->GetPosition(), this->GetTarget()->GetPosition());
|
float target_distance = DistanceNoZ(this->GetPosition(), this->GetTarget()->GetPosition());
|
||||||
if (target_distance >= 50) {
|
if (target_distance >= 25) {
|
||||||
this->FixZ();
|
this->FixZ();
|
||||||
}
|
}
|
||||||
else if (!this->CheckLosFN(this->GetTarget())) {
|
else if (!this->CheckLosFN(this->GetTarget())) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user