[战斗]=============被动263 269 274 332 112 145 修改提交
parent
172f800d2e
commit
8c6c57d916
|
@ -2052,6 +2052,9 @@ local passivityList = {
|
|||
role.Event:RemoveEvent(BattleEventName.RoleDamageAfter, onRoleDamageAfter)
|
||||
end
|
||||
local function onRoleDamageBefore(target, factorFunc, damageType, skill)
|
||||
if not skill then
|
||||
return
|
||||
end
|
||||
if skill and not skill.isTriggerJudge and judge==1 then
|
||||
return
|
||||
end
|
||||
|
@ -2905,6 +2908,9 @@ local passivityList = {
|
|||
|
||||
local index, tran
|
||||
local OnRoleDamageBefore = function(target, factorFunc, damageType, skill)
|
||||
if not skill then
|
||||
return
|
||||
end
|
||||
if skill and not skill.isTriggerJudge and judge==1 then
|
||||
return
|
||||
end
|
||||
|
@ -2914,6 +2920,9 @@ local passivityList = {
|
|||
end
|
||||
end
|
||||
local OnRoleDamageAfter = function(defRole,damageFunc,fixDamage,skill)
|
||||
if not skill then
|
||||
return
|
||||
end
|
||||
if skill and not skill.isTriggerJudge and judge==1 then
|
||||
return
|
||||
end
|
||||
|
@ -5742,6 +5751,9 @@ local passivityList = {
|
|||
local round=args[1]
|
||||
local pro=args[2]
|
||||
local onRoleDamageBefore=function(defRole, factorFunc, damageType, skill)
|
||||
if not skill then
|
||||
return
|
||||
end
|
||||
if skill and not skill.isTriggerJudge and judge==1 then
|
||||
return
|
||||
end
|
||||
|
@ -5913,6 +5925,9 @@ local passivityList = {
|
|||
local curBuff=nil
|
||||
|
||||
local onRoleDamageBefore=function(atkRole, factorFunc, damageType, skill)
|
||||
if not skill then
|
||||
return
|
||||
end
|
||||
if atkRole.camp~= role.camp and BattleLogic.BuffMgr:HasBuff(skill.owner, BuffName.DOT, function (buff) return buff.damageType == sta1 end,role,sta1) then
|
||||
--curBuff=Buff.Create(role, BuffName.Immune, 1,4,immune)
|
||||
-- role:AddBuff(curBuff)
|
||||
|
@ -6056,6 +6071,9 @@ local passivityList = {
|
|||
local curBuff=nil
|
||||
local immuneState=false
|
||||
local onRoleDamageBefore=function(atkRole, factorFunc, damageType, skill)
|
||||
if not skill then
|
||||
return
|
||||
end
|
||||
if atkRole.camp~= role.camp and BattleLogic.BuffMgr:HasBuff(skill.owner, BuffName.DOT, function (buff) return buff.damageType == sta1 end,role,sta1) then
|
||||
--curBuff=Buff.Create(role, BuffName.Immune, 1,4,immune)
|
||||
-- role:AddBuff(curBuff)
|
||||
|
@ -7830,6 +7848,9 @@ local passivityList = {
|
|||
end
|
||||
end
|
||||
local function onRoleDamageBefore(skill)
|
||||
if not skill then
|
||||
return
|
||||
end
|
||||
if skill and not skill.isTriggerJudge and judge==1 then
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue