判定修复

This commit is contained in:
xiekaidong 2023-09-08 10:37:10 +08:00
parent 874ecfd37b
commit b510c81e29

View File

@ -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