From b510c81e2929585b1c91fdb0f0b62ab8040e25ff Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Fri, 8 Sep 2023 10:37:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E5=AE=9A=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../battle/helper/battle_skill_condition_handle.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lua/app/module/battle/helper/battle_skill_condition_handle.lua b/lua/app/module/battle/helper/battle_skill_condition_handle.lua index 306d56c3..3431be9c 100644 --- a/lua/app/module/battle/helper/battle_skill_condition_handle.lua +++ b/lua/app/module/battle/helper/battle_skill_condition_handle.lua @@ -9,7 +9,17 @@ local DEFAULT_FACTOR = BattleConst.DEFAULT_FACTOR local function _judgeTargetState(buffCondition, conditionRel, target, battleController) local num = target:getBuffCountByName(buffCondition.attr) if num > 0 then -- 拥有这个buff - return true + if buffCondition.op == "<" then + return false + else + return true + end + else + if buffCondition.op == "<" then + return true + else + return false + end end return false end