【战斗】 白骨精追加普攻必定暴击修改
parent
fcc8724fca
commit
ed9efaf4e8
|
@ -597,7 +597,7 @@ function BattleUtil.CalDamage(skill, atkRole, defRole, damageType, baseFactor, i
|
||||||
--特殊处理 白骨精附加的普攻不会必定暴击
|
--特殊处理 白骨精附加的普攻不会必定暴击
|
||||||
local mustCrit=atkRole.mustCrit
|
local mustCrit=atkRole.mustCrit
|
||||||
if atkRole.roleId==10091 and skill and skill.type==BattleSkillType.Normal and skill.isAdd then
|
if atkRole.roleId==10091 and skill and skill.type==BattleSkillType.Normal and skill.isAdd then
|
||||||
atkRole.mustCrit=false
|
mustCrit=false
|
||||||
end
|
end
|
||||||
local critCondition = clamp(atkRole:GetRoleData(RoleDataName.Crit) - defRole:GetRoleData(RoleDataName.Tenacity), 0, 1)
|
local critCondition = clamp(atkRole:GetRoleData(RoleDataName.Crit) - defRole:GetRoleData(RoleDataName.Tenacity), 0, 1)
|
||||||
bCrit = critRandom <= critCondition
|
bCrit = critRandom <= critCondition
|
||||||
|
|
Loading…
Reference in New Issue