[战斗]===========合并local修改的观音追击导致报错

dev_chengFeng
wangzhenxing 2021-02-27 18:30:11 +09:00
parent ab355be37a
commit 7e80c71111
2 changed files with 6 additions and 4 deletions

View File

@ -6676,7 +6676,7 @@ local passivityList = {
local f2=args[2]
local onRoleHit = function(deadRole)
BattleLogic.WaitForTrigger(BattleLogic.GameDeltaTime, function ()
if deadRole.camp~=role.camp then
if deadRole.camp~=role.camp and not role:IsDead() then
role:InsertExtraSkill(f1,f2)
end
end)

View File

@ -131,9 +131,11 @@ function this.CheckTurnRound()
if this.TurnRoundFunc then
BattleLogic.WaitForTrigger(0.3, function()
-- 清除数量限制
this.CurSkillCount = 0
this.TurnRoundFunc()
this.TurnRoundFunc = nil
if this.TurnRoundFunc then
this.CurSkillCount = 0
this.TurnRoundFunc()
this.TurnRoundFunc = nil
end
end)
end
end