mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
Fix Z when following during pull, not when engaged and stationary or moving slightly
This commit is contained in:
+4
-1
@@ -996,8 +996,11 @@ void Mob::AI_Process() {
|
|||||||
|
|
||||||
if (engaged) {
|
if (engaged) {
|
||||||
|
|
||||||
|
/* Fix Z when following during pull, not when engaged and stationary */
|
||||||
if (moving && fix_z_timer_engaged.Check())
|
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)))
|
if (!(m_PlayerState & static_cast<uint32>(PlayerState::Aggressive)))
|
||||||
SendAddPlayerState(PlayerState::Aggressive);
|
SendAddPlayerState(PlayerState::Aggressive);
|
||||||
|
|||||||
Reference in New Issue
Block a user