Rewrite ^pull logic and handling. **MORE**

Add ^setassistee command to set who your bots will assist. Bots will always assist you first before anyone else.

If the rule Bots, AllowCrossGroupRaidAssist is enabled bots will assist the group or raid main assists.

Rewrites logic in handling of pull and returning to ensure bots make it back to their location.
This commit is contained in:
nytmyr
2024-12-05 07:21:34 -06:00
parent 6c19f3dbda
commit 9207be96d3
6 changed files with 199 additions and 25 deletions
+3
View File
@@ -2221,6 +2221,8 @@ public:
bool GetBotPulling() { return m_bot_pulling; }
void SetBotPulling(bool flag = true) { m_bot_pulling = flag; }
uint32 GetAssistee() { return _assistee; }
void SetAssistee(uint32 id = 0) { _assistee = id; }
bool GetBotPrecombat() { return m_bot_precombat; }
void SetBotPrecombat(bool flag = true) { m_bot_precombat = flag; }
@@ -2257,6 +2259,7 @@ private:
uint8 cure_min_threshold;
uint8 cure_threshold;
bool illusion_block;
uint32 _assistee;
bool CanTradeFVNoDropItem();
void SendMobPositions();