enable selected_targets of ActiveSkillPrompt

This commit is contained in:
Mechanel 2024-06-10 01:01:04 +08:00
parent 9daeb15dca
commit 2ca68e061a

View File

@ -718,6 +718,15 @@ function updateSelectedTargets(playerid, selected) {
}
if (candidate) {
roomScene.resetPrompt(); // update prompt due to selected_targets
const prompt = lcall("ActiveSkillPrompt",
dashboard.pending_skill !== "" ? dashboard.pending_skill: lcall("GetCardSkill", card),
dashboard.pending_skill !== "" ? dashboard.pendings : [card],
selected_targets);
if (prompt !== "") {
roomScene.setPrompt(Util.processPrompt(prompt));
}
all_photos.forEach(photo => {
if (photo.selected) return;
const id = photo.playerid;