From 889d9aedd832fe6f5666e7b42c7d04e35bfbbbe0 Mon Sep 17 00:00:00 2001 From: trickerer Date: Tue, 5 Nov 2024 04:20:54 +0700 Subject: [PATCH] NPCBots: Fix CI build 1 --- src/server/game/AI/NpcBots/bot_InstanceEvents.h | 1 + src/server/game/AI/NpcBots/bot_ai.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/game/AI/NpcBots/bot_InstanceEvents.h b/src/server/game/AI/NpcBots/bot_InstanceEvents.h index c5ff7cdcc64123..f3f49474a4477d 100644 --- a/src/server/game/AI/NpcBots/bot_InstanceEvents.h +++ b/src/server/game/AI/NpcBots/bot_InstanceEvents.h @@ -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: diff --git a/src/server/game/AI/NpcBots/bot_ai.cpp b/src/server/game/AI/NpcBots/bot_ai.cpp index 200a473fe66b01..0c207bd43516a2 100644 --- a/src/server/game/AI/NpcBots/bot_ai.cpp +++ b/src/server/game/AI/NpcBots/bot_ai.cpp @@ -18986,8 +18986,8 @@ WanderNode const* bot_ai::GetNextBGTravelNode() const constexpr std::array defend_priority_a{ 9, 7, 6, 3, 4, 2, 1, 8, 8, 5, 5, 0, 0, 0, 0 }; constexpr std::array defend_priority_h{ 1, 2, 4, 3, 6, 7, 9, 0, 0, 0, 0, 5, 5, 8, 8 }; - const std::array 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 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 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 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); };