mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Bots say when giving main tank to a real player as request player taunt
This commit is contained in:
@@ -184,5 +184,14 @@ void RazorscaleBossHelper::AssignRolesBasedOnHealth()
|
|||||||
// Assign the single main tank
|
// Assign the single main tank
|
||||||
group->SetGroupMemberFlag(newMainTank->GetGUID(), true, MEMBER_FLAG_MAINTANK);
|
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);
|
_lastRoleSwapTime = std::time(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user