【战斗】=======反伤盾类型修改
parent
020d8b1b05
commit
b46519d9c8
|
@ -488,6 +488,7 @@ function BattleLogic.Update()
|
|||
end
|
||||
if CurRound > MaxRound then
|
||||
if BattleLogic.Type == BATTLE_SERVER_TYPE.TOPFight -- 巅峰赛
|
||||
or BattleLogic.Type == BATTLE_SERVER_TYPE.ArenaFight
|
||||
or BattleLogic.Type == BATTLE_SERVER_TYPE.Firend
|
||||
or BattleLogic.Type == BATTLE_SERVER_TYPE.CrossYuxuLunDaoFight
|
||||
or BattleLogic.Type == BATTLE_SERVER_TYPE.LINGMAIMIJING
|
||||
|
|
|
@ -5,7 +5,7 @@ local onRoleBeHit=nil
|
|||
--初始化Buff,通过传入一些自定义参数控制成长相关的数值
|
||||
function Shield:SetData(...)
|
||||
|
||||
self.shieldType, -- 护盾类型(1 固定减伤盾 2 百分比减伤盾 3 无敌盾)
|
||||
self.shieldType, -- 护盾类型(1 固定减伤盾 2 百分比减伤盾 3 无敌盾 5.反伤盾 )
|
||||
self.shieldValue, -- 护盾值(固定减伤盾:减伤值 百分比减伤盾:减伤百分比 无敌盾:吸血率)
|
||||
self.dmgReboundFactor = ... --伤害反弹系数
|
||||
self.damageSum = 0 --记录承受的伤害
|
||||
|
@ -16,7 +16,8 @@ function Shield:SetData(...)
|
|||
-- 刷新排序等级
|
||||
self.sort = 4
|
||||
immune0=function(buff)
|
||||
return buff.type == BuffName.Control or buff.isDeBuff or buff.type == BuffName.DOT or buff.caster.camp~=self.target.camp
|
||||
return buff.type == BuffName.Control or buff.isDeBuff or buff.type == BuffName.DOT or (buff.caster.camp~=self.target.camp and buff.type~= BuffName.Exile
|
||||
)
|
||||
end
|
||||
onRoleBeHit=function(atkRole, damage, bCrit, finalDmg, damageType, skill)
|
||||
--damagetype为3 是 舍身济世分摊伤害
|
||||
|
|
|
@ -333,7 +333,7 @@ ShieldTypeName = {
|
|||
NormalReduce = 1, -- 固定值减伤
|
||||
RateReduce = 2, -- 百分比减伤
|
||||
AllReduce = 3, -- 无敌护盾
|
||||
ThornsReduce = 4, --反伤盾
|
||||
ThornsReduce = 5, --反伤盾
|
||||
}
|
||||
|
||||
--额外释放技能
|
||||
|
|
Loading…
Reference in New Issue