From e71c5e4e915a35a4f94af0a2af6c0c696615a5d3 Mon Sep 17 00:00:00 2001 From: avirar Date: Sun, 22 Dec 2024 09:32:35 +1100 Subject: [PATCH] Bots say when giving main tank to a real player as request player taunt --- src/strategy/raids/ulduar/RaidUlduarBossHelper.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/strategy/raids/ulduar/RaidUlduarBossHelper.cpp b/src/strategy/raids/ulduar/RaidUlduarBossHelper.cpp index f57843eb..9146ac46 100644 --- a/src/strategy/raids/ulduar/RaidUlduarBossHelper.cpp +++ b/src/strategy/raids/ulduar/RaidUlduarBossHelper.cpp @@ -184,5 +184,14 @@ void RazorscaleBossHelper::AssignRolesBasedOnHealth() // Assign the single main tank group->SetGroupMemberFlag(newMainTank->GetGUID(), true, MEMBER_FLAG_MAINTANK); + // Notify if the new main tank is a real player + if (GET_PLAYERBOT_AI(newMainTank)->IsRealPlayer()) + { + const std::string playerName = newMainTank->GetName(); + const auto text = BOT_TEXT2("%s please taunt Razorscale now!", { playerName }); + botAI->Say(text); + } + _lastRoleSwapTime = std::time(nullptr); } +