Crash fixes, movement fixes, WIP knockback support

This commit is contained in:
郑佩茹
2022-03-23 13:26:26 -06:00
parent 180014eb88
commit d31fc287af
3 changed files with 142 additions and 41 deletions

View File

@@ -361,6 +361,12 @@ class PlayerbotAI : public PlayerbotAIBase
static bool IsOpposing(uint8 race1, uint8 race2);
PlayerbotSecurity* GetSecurity() { return &security; }
Position GetJumpDestination() { return jumpDestination; }
void SetJumpDestination(Position pos) { jumpDestination = pos; }
void ResetJumpDestination() { jumpDestination = Position(); }
bool CanMove();
private:
void _fillGearScoreData(Player* player, Item* item, std::vector<uint32>* gearScore, uint32& twoHandScore);
bool IsTellAllowed(PlayerbotSecurityLevel securityLevel = PLAYERBOT_SECURITY_ALLOW_ALL);
@@ -387,6 +393,7 @@ class PlayerbotAI : public PlayerbotAIBase
time_t allowActiveCheckTimer[MAX_ACTIVITY_TYPE];
bool inCombat = false;
BotCheatMask cheatMask = BotCheatMask::none;
Position jumpDestination = Position();
};
#endif