天蓬相关技能提交
parent
4ece26aaf4
commit
de787a85f7
|
@ -3113,6 +3113,14 @@ local effectList = {
|
|||
BattleUtil.FinalDamage(nil, caster, target,floor(value), nil, 0, nil, true)
|
||||
end)
|
||||
end,
|
||||
--添加一个控制效果
|
||||
[159] = function(caster, target, args, interval, skill)
|
||||
local round = args[1]--持续回合数
|
||||
local ctrType= args[2]--控制类型
|
||||
BattleLogic.WaitForTrigger(interval, function ()
|
||||
target:AddBuff(Buff.Create(caster, BuffName.Control, round, ctrType))
|
||||
end)
|
||||
end,
|
||||
}
|
||||
|
||||
return effectList
|
|
@ -8976,7 +8976,6 @@ local passivityList = {
|
|||
[364] = function(role, args,id,judge)
|
||||
local pro = args[1]
|
||||
local f1 = args[2]
|
||||
local i1 = args[3]
|
||||
-- 技能后后
|
||||
local onSkillEnd = function(skill)
|
||||
if skill and not skill.isTriggerJudge and judge==1 then
|
||||
|
@ -12299,5 +12298,22 @@ local passivityList = {
|
|||
|
||||
role.Event:AddEvent(BattleEventName.CheckTreatVoid,onTreatVoid,nil,nil,role)
|
||||
end,
|
||||
-- 释放技能后给自身增加自身[a][b]%的御甲
|
||||
-- a[属性]b[float]
|
||||
[466] = function(role, args)
|
||||
local pro = args[1]
|
||||
local f1 = args[2]
|
||||
-- 技能后
|
||||
local onSkillEnd = function(skill)
|
||||
if skill then
|
||||
if skill.type == BattleSkillType.Special then
|
||||
local tv = floor(BattleUtil.ErrorCorrection(role:GetRoleData(BattlePropList[pro]) * f1))
|
||||
BattleUtil.AddBlood(role,tv)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
role.Event:AddEvent(BattleEventName.SkillCastEnd, onSkillEnd,nil,nil,role)
|
||||
end,
|
||||
}
|
||||
return passivityList
|
|
@ -9,8 +9,14 @@ function Control:SetData(...)
|
|||
self.sort = 4
|
||||
end
|
||||
|
||||
|
||||
--初始化后调用一次
|
||||
function Control:OnStart()
|
||||
local lockTargetFun=function()
|
||||
self.target.ctrl_slient = false
|
||||
self.target.lockTarget=nil
|
||||
self.disperse=true
|
||||
end
|
||||
if self.ctrlType == 1 then --眩晕
|
||||
self.target.ctrl_dizzy = true
|
||||
elseif self.ctrlType == 2 then --沉默
|
||||
|
@ -18,6 +24,7 @@ function Control:OnStart()
|
|||
elseif self.ctrlType == 3 then --嘲讽(包括沉默)
|
||||
self.target.lockTarget = self.caster
|
||||
self.target.ctrl_slient = true
|
||||
self.caster.Event:AddEvent(BattleEventName.RoleDead,lockTargetFun,nil,nil,self.target)
|
||||
elseif self.ctrlType == 4 then --禁疗
|
||||
self.target.ctrl_noheal = true
|
||||
elseif self.ctrlType == 5 then --致盲
|
||||
|
|
|
@ -320,6 +320,7 @@ ControlType = {
|
|||
BattleSkillType = {
|
||||
Monster = 0,
|
||||
Normal = 1,
|
||||
--大招
|
||||
Special = 2,
|
||||
--额外技能
|
||||
Extra = 3,
|
||||
|
|
|
@ -299,7 +299,7 @@ function BattleUtil.ChooseTarget(role, chooseId,queryType)
|
|||
arr = RoleManager.Query(function (r) return r.camp == role.camp end)
|
||||
end
|
||||
elseif chooseType == 2 then
|
||||
if role.lockTarget and not role.lockTarget:IsRealDead() and not role.lockTarget.isExile and num == 1 then --嘲讽时对单个敌军生效
|
||||
if role.lockTarget and not role.lockTarget:IsRealDead() and not role.lockTarget.isExile then --嘲讽时对单个敌军生效
|
||||
return {role.lockTarget}
|
||||
end
|
||||
arr = RoleManager.Query(function (r) return r.camp ~= role.camp end)
|
||||
|
|
Loading…
Reference in New Issue