parent
95b207e1eb
commit
33efb7bc2a
|
|
@ -6956,26 +6956,34 @@ local passivityList = {
|
|||
[318] = function(role, args)
|
||||
local f1 = args[1]
|
||||
local ctrlNum=0
|
||||
local isCtrl=false
|
||||
-- 死亡数量
|
||||
local onRoleAddBuffMiss = function(buff)
|
||||
if buff then
|
||||
if buff.type==BuffName.Control and buff.caster==role then
|
||||
isCtrl=true
|
||||
ctrlNum=ctrlNum+1
|
||||
end
|
||||
|
||||
local onBuffCaster = function(buff)
|
||||
LogGreen("buff type = ".. buff.type)
|
||||
if buff.type == BuffName.Control then
|
||||
ctrlNum = ctrlNum + 1
|
||||
end
|
||||
end
|
||||
BattleLogic.Event:AddEvent(BattleEventName.RoleAddBuffFail, onRoleAddBuffMiss,nil,nil,role)
|
||||
|
||||
local onSkillCastStart= function(skill)
|
||||
if skill.owner == role then
|
||||
ctrlNum = 0
|
||||
role.Event:AddEvent(BattleEventName.BuffCaster, onBuffCaster,nil,nil,role)
|
||||
end
|
||||
end
|
||||
|
||||
local onSkillCastEnd= function(skill)
|
||||
local maxNum=#skill:GetDirectTargets()
|
||||
if isCtrl and ctrlNum>=maxNum then
|
||||
BattleUtil.CalRage(role, role,f1, CountTypeName.Add)
|
||||
if skill.owner == role then
|
||||
if ctrlNum == 0 then
|
||||
if skill.type == BattleSkillType.Special or skill.type==BattleSkillType.Extra then
|
||||
BattleUtil.CalRage(role, role,f1, CountTypeName.Add)
|
||||
end
|
||||
end
|
||||
role.Event:RemoveEvent(BattleEventName.BuffCaster, onBuffCaster,nil,nil,role)
|
||||
end
|
||||
isCtrl=false
|
||||
ctrlNum=0
|
||||
end
|
||||
role.Event:AddEvent(BattleEventName.SkillCastEnd,onSkillCastEnd,nil,nil,role)
|
||||
-- 这里使用BattleLogic.Event,因为有的技能效果是在人物技能释放完成后生效的
|
||||
BattleLogic.Event:AddEvent(BattleEventName.SkillCast,onSkillCastStart,nil,nil,role)
|
||||
BattleLogic.Event:AddEvent(BattleEventName.SkillCastEnd,onSkillCastEnd,nil,nil,role)
|
||||
end,
|
||||
--死亡时,按剩余怒气乘[a]平均分给存活队友,每人至少[b]点,按站位优先
|
||||
--a[int],b[int]
|
||||
|
|
@ -7027,7 +7035,7 @@ local passivityList = {
|
|||
local function onRoundChange(round)
|
||||
if round==curRound+1 then
|
||||
p1=args[1]
|
||||
time=0
|
||||
time=0
|
||||
end
|
||||
curRound=round
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue