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 -1
View File
@@ -54,7 +54,9 @@ export function compileLivePlayerbotIntent(botName:string,decision:Decision){
`if not ${p} then error("Managed Playerbot is not online") end`,
`if not ${p}:IsPlayerbot() then error("Managed character is not controlled by PlayerbotAI") end`,
`local ${ai}=${p}:GetBotAI()`,
`if not ${ai} then error("PlayerbotAI unavailable") end`
`if not ${ai} then error("PlayerbotAI unavailable") end`,
`if ${ai}:HasGameClientMaster() then return "Human control preserved" end`,
`if AzerothAISurvivalOverride and AzerothAISurvivalOverride(${p}) then return "Native survival action takes priority" end`
];
const body:string[]=[];
const clearStay=()=>body.push(strategy(ai,'-stay'));