[战斗]=========被动250 修改
parent
4bd1047ccc
commit
79addd132d
|
@ -5427,38 +5427,40 @@ local passivityList = {
|
|||
-- 击杀数量累加
|
||||
local OnRoleHit = function(defRole, damage, bCrit, finalDmg, damageType, skill)
|
||||
--如果是技能并且这个被动已经被触发过 return
|
||||
if skill and BattleUtil.ChecklistIsContainValue(skill.triggerPassivityId,id) then
|
||||
if skill and BattleUtil.ChecklistIsContainValue(skill.triggerPassivityId,id) then
|
||||
return
|
||||
end
|
||||
if skill and defRole:IsDead() and not BattleUtil.CheckIsNoDead(defRole) then
|
||||
killNum = killNum + 1
|
||||
--killNum = killNum + 1
|
||||
if skill then
|
||||
--skill.isTriggePassivity=true
|
||||
table.insert(skill.triggerPassivityId,id)
|
||||
end
|
||||
local buff = Buff.Create(role, BuffName.PropertyChange, 0, BattlePropList[5], f1, ct)
|
||||
role:AddBuff(buff)
|
||||
end
|
||||
end
|
||||
role.Event:AddEvent(BattleEventName.RoleHit, OnRoleHit,nil,nil,role)
|
||||
|
||||
-- 释放技能时计算额外伤害
|
||||
local OnSkillCast = function(skill)
|
||||
if skill then
|
||||
extra = f1 * killNum
|
||||
end
|
||||
end
|
||||
role.Event:AddEvent(BattleEventName.SkillCast, OnSkillCast,nil,nil,role)
|
||||
-- local OnSkillCast = function(skill)
|
||||
-- if skill then
|
||||
-- extra = f1 * killNum
|
||||
-- end
|
||||
-- end
|
||||
-- role.Event:AddEvent(BattleEventName.SkillCast, OnSkillCast,nil,nil,role)
|
||||
|
||||
|
||||
-- 造成伤害时判断额外伤害
|
||||
local passivityDamaging = function(func, caster, damage, skill)
|
||||
if skill then
|
||||
if func then
|
||||
local dd = BattleUtil.CountValue(damage, extra, ct) - damage
|
||||
func(-floor(BattleUtil.ErrorCorrection(dd)))
|
||||
end
|
||||
end
|
||||
end
|
||||
role.Event:AddEvent(BattleEventName.PassiveDamaging, passivityDamaging,nil,nil,role)
|
||||
-- -- 造成伤害时判断额外伤害
|
||||
-- local passivityDamaging = function(func, caster, damage, skill)
|
||||
-- if skill then
|
||||
-- if func then
|
||||
-- local dd = BattleUtil.CountValue(damage, extra, ct) - damage
|
||||
-- func(-floor(BattleUtil.ErrorCorrection(dd)))
|
||||
-- end
|
||||
-- end
|
||||
-- end
|
||||
-- role.Event:AddEvent(BattleEventName.PassiveDamaging, passivityDamaging,nil,nil,role)
|
||||
end,
|
||||
|
||||
-- 直接伤害击杀[a]目标回复[b]%的最大生命 重写148 一次技能只触发一次被动
|
||||
|
|
Loading…
Reference in New Issue