[战斗]======被动304修改

dev_chengFeng
wangzhenxing 2022-04-25 20:03:44 +08:00
parent 868eb69aa6
commit adef176142
3 changed files with 15 additions and 5 deletions

View File

@ -329,7 +329,8 @@ local SetSortingOrder = function(uiConfig, panel, isStackPanel, ...)
for i = 1, #this.stackList do
-- this.stackList[i].transform:SetAsLastSibling()
--特殊处理战斗特效穿透结算界面问题
if ((this.stackList[i].uiConfig.id==UIName.BattleWinPopup or this.stackList[i].uiConfig.id==UIName.BattleFailPopup) and UIManager.IsOpen(this.stackList[i].uiConfig.id) ) then
local windId=this.stackList[i].uiConfig.id
if ((windId==UIName.BattleWinPopup or windId==UIName.BattleFailPopup or windId==UIName.BattleBestPopup) and UIManager.IsOpen(this.stackList[i].uiConfig.id) ) then
addFloor=20
end
this.stackList[i]:SetSortingOrder((i+addFloor) * this.space)
@ -369,7 +370,6 @@ function UIManager.GetPanel(id, isSync, func, ...)
end
if not panel then
panel = reimport("Modules/"..uiConfig.script)
LogError("------------------"..uiConfig.script)
this.openedList[uiConfig.id] = panel
panel.uiConfig = uiConfig

View File

@ -7114,14 +7114,22 @@ local passivityList = {
local p1 = args[3]
local v1 = args[4]
local round = args[5]
local buff=nil
BattleLogic.Event:AddEvent(BattleEventName.BattleRoundChange, function(curRound)
-- 第i1回合开始
if curRound == i1 then
role:AddBuff(Buff.Create(role, BuffName.PropertyChange,round, BattlePropList[p1],v1, ct))
buff=Buff.Create(role, BuffName.PropertyChange,round, BattlePropList[p1],v1, ct)
role:AddBuff(buff)
end
end,nil,nil,role)
BattleLogic.Event:AddEvent(BattleEventName.BattleRoundEnd,function(curRound)
if curRound==i1+round-1 then
if buff and buff.caster==role then
buff.disperse = true
end
end
end)
end,
-- 敌方单位被击杀自身释放[a]技能,释放的技能类型为[b]。
-- a[int] b[int]

View File

@ -376,12 +376,14 @@ function this.RequestGetDailyReward(func)
end
Timer.New(function()
NetManager.GetHardStageDailyReward(function(msg)
PrivilegeManager.RefreshPrivilegeUsedTimes(buyPriId,1)
PrivilegeManager.RefreshPrivilegeUsedTimes(freePriId,1)--记录抽卡次数
--PrivilegeManager.RefreshPrivilegeUsedTimes(buyPriId,1)
-- 刷新红点状态
CheckRedPointStatus(RedPointType.FightLevelDailyReward)
-- 触发状态改变
Game.GlobalEvent:DispatchEvent(GameEvent.FightLevel.DailyRewardStateChange)
-- 显示掉落
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1)
end)
end,1,1,false):Start()