mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 11:21:58 +01:00
Core/SmartAI: Add passive check for WP movement
This commit is contained in:
@@ -312,7 +312,7 @@ void SmartAI::UpdatePath(const uint32 diff)
|
||||
mWPReached = false;
|
||||
}
|
||||
}
|
||||
if (me->IsInCombat() || HasEscortState(SMART_ESCORT_PAUSED | SMART_ESCORT_RETURNING))
|
||||
if ((!me->HasReactState(REACT_PASSIVE) && me->IsInCombat()) || HasEscortState(SMART_ESCORT_PAUSED | SMART_ESCORT_RETURNING))
|
||||
return;
|
||||
// handle next wp
|
||||
if (mWPReached)//reached WP
|
||||
|
||||
Reference in New Issue
Block a user