quest playroom fix bug

This commit is contained in:
hahwu 2026-02-10 16:44:40 +08:00
parent 1674ae161f
commit 60785c9909

View File

@ -109,10 +109,13 @@ func TriggerQuestProgress(q *QuestProgress, Tr *Trigger) bool {
if len(q.A) == 0 { if len(q.A) == 0 {
return false return false
} }
if len(Tr.A) == 0 {
return false
}
Ids := GoUtil.IntSliceInterface(q.A) Ids := GoUtil.IntSliceInterface(q.A)
for _, t := range Tr.A { arg := GoUtil.IntSlice(Tr.A[0])
DressType := GoUtil.Int(t) for _, t := range arg {
if GoUtil.InArray(DressType, Ids) { if GoUtil.InArray(t, Ids) {
q.Num += 1 q.Num += 1
} }
} }