【战斗】加血普攻会触发降怒被动的问题,修改被动技能195全部免疫改为部分免疫
parent
7870934f0c
commit
88516ad0e2
|
@ -2947,7 +2947,8 @@ local passivityList = {
|
|||
[156] = function(role, args)
|
||||
local i1 = args[1]
|
||||
local onBeSkillCastEnd = function(skill)
|
||||
if skill.type == BattleSkillType.Normal then
|
||||
--同阵营给自己普攻加血不扣除怒气
|
||||
if skill.owner.camp~=role.camp and skill.type == BattleSkillType.Normal then
|
||||
skill.owner:AddRage(i1, CountTypeName.Sub)
|
||||
end
|
||||
end
|
||||
|
@ -3775,9 +3776,20 @@ local passivityList = {
|
|||
-- a[控制状态]
|
||||
[195] = function(role, args)
|
||||
local ctrl = args[1]
|
||||
|
||||
local ctr2 = args[2]
|
||||
local ctr3 = args[3]
|
||||
local ctrls={}
|
||||
if ctrl then
|
||||
table.insert(ctrls,ctrl)
|
||||
end
|
||||
if ctr2 then
|
||||
table.insert(ctrls,ctr2)
|
||||
end
|
||||
if ctr3 then
|
||||
table.insert(ctrls,ctr3)
|
||||
end
|
||||
local immune = function(buff)
|
||||
return buff.type == BuffName.Control and (ctrl == 0 or buff.ctrlType == ctrl)
|
||||
return buff.type == BuffName.Control and (BattleUtil.ChecklistIsContainValue(ctrls,buff.ctrlType))
|
||||
end
|
||||
|
||||
BattleLogic.Event:AddEvent(BattleEventName.BattleRoundChange, function(curRound)
|
||||
|
|
Loading…
Reference in New Issue