Add danger-aware companion selection and native survival assistance
Core tests / core (push) Successful in 39s
Core tests / core (push) Successful in 39s
This commit is contained in:
@@ -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={}
|
||||
|
||||
Reference in New Issue
Block a user