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:
+3
-1
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user