【战斗】修复孙悟空和观音菩萨同时死亡导致报错的问题
parent
2bc7c4e72c
commit
bb68af637a
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue