mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Battleground Rewrite
- Refactored BattleGroundTactics.cpp - Bots choose strategies to determine if they are more aggressive or defensive in objectives - Largely improved bots tactics in WSG, AB, AV and EY - Improved how bots chase flag carriers - Fixed some bots stuck in action loops - especially in WSG and AV - Fixed several other Bugs
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
*/
|
||||
|
||||
#include "CheckMountStateAction.h"
|
||||
#include "BattleGroundTactics.h"
|
||||
#include "BattlegroundEY.h"
|
||||
#include "BattlegroundWS.h"
|
||||
#include "Event.h"
|
||||
#include "PlayerbotAI.h"
|
||||
@@ -98,7 +100,7 @@ bool CheckMountStateAction::isUseful()
|
||||
if (bot->InBattleground())
|
||||
{
|
||||
// Do not use when carrying BG Flags
|
||||
if (bot->HasAura(23333) || bot->HasAura(23335) || bot->HasAura(34976))
|
||||
if (bot->HasAura(BG_WS_SPELL_WARSONG_FLAG) || bot->HasAura(BG_WS_SPELL_SILVERWING_FLAG) || bot->HasAura(BG_EY_NETHERSTORM_FLAG_SPELL))
|
||||
return false;
|
||||
|
||||
// Only mount if BG starts in less than 30 sec
|
||||
|
||||
Reference in New Issue
Block a user