From a5ee8db5edfe9c58e31bfc0815e7b524c524a384 Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Wed, 15 Mar 2023 14:23:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BE=E9=81=A3=E9=A2=9D=E5=A4=96=E8=A6=81?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/dispatch/model_dispatch.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/dispatch/model_dispatch.go b/modules/dispatch/model_dispatch.go index 69442d20a..12f6adca2 100644 --- a/modules/dispatch/model_dispatch.go +++ b/modules/dispatch/model_dispatch.go @@ -306,12 +306,15 @@ func (this *modelDispatch) validHeroCond(uid string, taskId int32, heroId string case 1: //校验英雄的基础条件 if hero.Lv >= v.Param { ok1 = true - return } + } + } + + for _, v := range gd.Taskreqex { + switch v.Key { case 2: //校验英雄的额外要求 if hero.Star >= v.Param { ok2 = true - return } } }