Add danger-aware companion selection and native survival assistance
Core tests / core (push) Successful in 39s

This commit is contained in:
Codex
2026-09-22 21:41:51 -04:00
parent 290926f33f
commit a533c7b28a
10 changed files with 167 additions and 17 deletions
+3
View File
@@ -145,6 +145,9 @@ local function world_payload(player)
local p=player_payload(player)
local ai=player:IsPlayerbot() and player:GetBotAI() or nil
p.humanControlled=ai and ai:HasGameClientMaster() or false
p.quests={};if ai then for slot=0,24 do local q=player:GetQuestSlotQuestId(slot);if q and q>0 then p.quests[#p.quests+1]=q end end end
if ai then p.combatRole=player:IsHealer() and 'healer' or player:IsTank() and 'tank' or 'damage' end
if AzerothAISurvivalState then p.dangerAt,p.survivalAction,p.survivalAt=AzerothAISurvivalState(player) end
local g=player:GetGroup()
p.groupId=g and tostring(g:GetGUID()) or ""
local members={}