Skip to content

[Bots] Answer raid role checks - #322

Merged
billy1arm merged 1 commit into
mangosthree:masterfrom
r-log:feat/bots-answer-role-check
Aug 6, 2026
Merged

[Bots] Answer raid role checks#322
billy1arm merged 1 commit into
mangosthree:masterfrom
r-log:feat/bots-answer-role-check

Conversation

@r-log

@r-log r-log commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Depends on #320 for SMSG_ROLE_POLL_BEGIN and Group::SetLfgRoles.

Bots already receive the role poll — Group::BroadcastPacket sends to every member
with a session — they just ignored it. Since a bot has no popup to click, it answers
from the strategy it is already running (STRATEGY_TYPE_TANK / STRATEGY_TYPE_HEAL),
the same source IsTank()/IsHeal() read, so the reported role matches how the bot
actually plays.

Without this the tank/healer/damage counters never count any bot, because roles only
reach the client through SMSG_GROUP_LIST and a bot never set one.

Builds clean with PLAYERBOTS=1; the file is not compiled with PLAYERBOTS=0.


This change is Reviewable

@AppVeyorBot

Copy link
Copy Markdown

A bot has no role-poll popup, so SMSG_ROLE_POLL_BEGIN went unanswered and the
raid's tank/healer/damage counters never counted any bot. Bots now reply with
the role implied by the strategy they are already running, which is the same
source IsTank()/IsHeal() read.
@r-log
r-log force-pushed the feat/bots-answer-role-check branch from b1a117f to 5d47fe2 Compare August 6, 2026 01:04
@AppVeyorBot

Copy link
Copy Markdown

@billy1arm
billy1arm merged commit 244719c into mangosthree:master Aug 6, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants