wangyuan 2019-07-12 15:29:53 +08:00
parent 0a832f3e08
commit b0b08481d4
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ function BattleUtil.ChooseTarget(role, chooseId)
if chooseType == 1 then
arr = BattleLogic.Query(function (r) return r.camp == role.camp end)
elseif chooseType == 2 then
if role.lockTarget and num == 1 then --嘲讽时对单个敌军生效
if role.lockTarget and not role.lockTarget.isDead and num == 1 then --嘲讽时对单个敌军生效
return {role.lockTarget}
end
arr = BattleLogic.Query(function (r) return r.camp ~= role.camp end)
@ -38,7 +38,7 @@ function BattleUtil.ChooseTarget(role, chooseId)
end
return {role}
elseif chooseType == 4 then
if role.lockTarget then --嘲讽时对仇恨目标生效
if role.lockTarget and not role.lockTarget.isDead then --嘲讽时对仇恨目标生效
return {role.lockTarget}
end
if role.ctrl_blind then --致盲时仇恨目标变随机