[战斗]=====被动257 不灭buff修改

dev_chengFeng
wangzhenxing 2021-12-08 10:30:18 +08:00
parent 4c92d13393
commit 7277afdf9b
2 changed files with 9 additions and 0 deletions

View File

@ -5693,6 +5693,9 @@ local passivityList = {
if not point then
point=list[1]
end
if point==nil then
return
end
BattleUtil.FinalDamage(nil,role,point,dmg)
if curNum>=maxNum then
return

View File

@ -27,6 +27,9 @@ end
-- 记录承受伤害
function NoDead:OnRoleBeHit(atkRole, damage, bCrit, finalDmg, damageType, skill,isDirect)
if skill and (skill.type == BattleSkillType.Special or skill.type==BattleSkillType.Extra or skill.type==BattleSkillType.DeadSkill ) and atkRole.camp~=self.target.camp then
if self.changePro==nil then
self.changePro=0.1
end
self.recordDamage=self.recordDamage+math.floor(damage*self.changePro)
end
end
@ -65,6 +68,9 @@ function NoDead:OnEnd()
self.target.Event:RemoveEvent(BattleEventName.RoleBeHit,self.OnRoleBeHit,self)
end
--self.target.Event
if self.pro==nil then
self.pro=0
end
local isRand=BattleUtil.RandomAction(self.pro,function()
RoleManager.RemoveDeadRole(self.target)
self.target.isDead=false