Bots say when giving main tank to a real player as request player taunt

This commit is contained in:
avirar
2024-12-22 09:32:35 +11:00
committed by GitHub
parent 7c8563ef7d
commit e71c5e4e91

View File

@@ -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);
}