判定修复
This commit is contained in:
parent
874ecfd37b
commit
b510c81e29
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user