【战斗】修复孙悟空和观音菩萨同时死亡导致报错的问题

dev_chengFeng
gaoxin 2021-02-24 17:02:31 +08:00
parent 2bc7c4e72c
commit bb68af637a
2 changed files with 6 additions and 4 deletions

View File

@ -6443,7 +6443,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

@ -123,9 +123,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