[战斗]=======被动387修改

dev_chengFeng
wangzhenxing 2022-03-30 17:12:03 +08:00
parent 4252fde78f
commit 24a92b6b98
1 changed files with 4 additions and 3 deletions

View File

@ -9698,19 +9698,20 @@ local passivityList = {
if skill and not skill.isTriggerJudge and judge==1 then
return
end
local aa=dt
if skill and skill.type == BattleSkillType.Normal and skill.isAdd and skill.owner==role then
--如果是boss 并且额外伤害是根据最大生命则返回
if (f1==12 or f1==13) and BattleUtil.CheckIsBoss(defRole) then
return
end
if (f1==12 or f1==13) and p1 then
if (f1==12 or f1==13) and p1 then
if haveRage>defRole.Rage then
dt=dt+p1
aa=aa+p1
else
defRole:AddBuff(Buff.Create(role, BuffName.BanBlood, p2))
end
end
local val = -floor(BattleUtil.FP_Mul(dt, defRole:GetRoleData(BattlePropList[f1])))
local val = -floor(BattleUtil.FP_Mul(aa, defRole:GetRoleData(BattlePropList[f1])))
if f1==12 or f1==13 then
BattleUtil.FinalDamageCountShield(nil,role,defRole,-val)
else