Skip to content

Commit

Permalink
NPCBots: Fix CI build 1
Browse files Browse the repository at this point in the history
  • Loading branch information
trickerer committed Nov 4, 2024
1 parent f1c9391 commit 889d9ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/server/game/AI/NpcBots/bot_InstanceEvents.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class FrozenThronePlatformDestructionEvent : public NpcBotInstanceEventBase
{
friend class bot_ai;
friend class instance_icecrown_citadel;
friend struct instance_icecrown_citadel_InstanceMapScript;
friend class script_bot_commands;

public:
Expand Down
4 changes: 2 additions & 2 deletions src/server/game/AI/NpcBots/bot_ai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18986,8 +18986,8 @@ WanderNode const* bot_ai::GetNextBGTravelNode() const

constexpr std::array<uint8, BG_AV_NODES_MAX> defend_priority_a{ 9, 7, 6, 3, 4, 2, 1, 8, 8, 5, 5, 0, 0, 0, 0 };
constexpr std::array<uint8, BG_AV_NODES_MAX> defend_priority_h{ 1, 2, 4, 3, 6, 7, 9, 0, 0, 0, 0, 5, 5, 8, 8 };
const std::array<uint8, BG_AV_NODES_MAX> req_attackers_count{ uint8(team_members.size()) / 2u, 4, 4, 4, 4, 4, uint8(team_members.size()) / 2u, 4, 4, 4, 4, 4, 4, 4, 4 };
const std::array<uint8, BG_AV_NODES_MAX> req_defenders_count{ uint8(team_members.size()) / 2u, 4, 4, 4, 4, 4, uint8(team_members.size()) / 2u, 0, 0, 0, 0, 0, 0, 0, 0 };
const std::array<uint8, BG_AV_NODES_MAX> req_attackers_count{ uint8(team_members.size() / 2u), 4, 4, 4, 4, 4, uint8(team_members.size() / 2u), 4, 4, 4, 4, 4, 4, 4, 4 };
const std::array<uint8, BG_AV_NODES_MAX> req_defenders_count{ uint8(team_members.size() / 2u), 4, 4, 4, 4, 4, uint8(team_members.size() / 2u), 0, 0, 0, 0, 0, 0, 0, 0 };

static const std::function flag_wp_pred = [](WanderNode const* wp) { return wp->HasFlag(BotWPFlags::BOTWP_FLAG_BG_FLAG_PICKUP_TARGET); };
static const std::function flag_or_bunker_wp_pred = [](WanderNode const* wp) { return wp->HasFlag(BotWPFlags::BOTWP_FLAG_ALLIANCE_FLAG_PICKUP_TARGET); };
Expand Down

0 comments on commit 889d9ae

Please sign in to comment.