[战斗]===========被动371 368修改

dev_chengFeng
wangzhenxing 2021-11-05 09:50:28 +08:00
parent 4cb826b9e5
commit 51dfdede03
2 changed files with 10 additions and 2 deletions

View File

@ -8830,7 +8830,7 @@ local passivityList = {
local onRoleTreat=function(target,realTreat,treat)
local hp=treat- realTreat
if hp>0 and realTreat>0 then
if hp>0 then
addHp=addHp+hp*count
end
end
@ -8946,7 +8946,7 @@ local passivityList = {
return
end
if skill.type~= BattleSkillType.Special or skill.type~= BattleSkillType.Extra then
if skill.type~= BattleSkillType.Special and skill.type~= BattleSkillType.Extra then
return
end
local arr=skill:GetDirectTargetsNoExile()

View File

@ -106,6 +106,14 @@ function BuffCtrl:AddBuffEffect(buffName, isTrigger, offset)
local sortingOrder
if self.owner.camp == 0 then
sortingOrder = self.owner.GameObject:GetComponent("Canvas").sortingOrder
--混乱特效因为贴图不显示特殊处理
if buffName=="TongYong_Effect_buff_hunluan_1" then
sortingOrder=sortingOrder+1
end
end
--混乱特效因为贴图不显示特殊处理
if sortingOrder==nil and buffName=="TongYong_Effect_buff_hunluan_1" then
sortingOrder=BattleManager.GetBattleSorting()+1
end
local node = BattleManager.LoadAsset(buffName, sortingOrder)
-- node.transform:SetParent(self.RootPanel.transform)