解决美美的盾的计算问题
This commit is contained in:
parent
9fc3f6230d
commit
e5a005fed1
|
@ -1571,6 +1571,9 @@ function parseSkillDescription(skill) {
|
|||
case 163: //无条件盾,属性个数不固定
|
||||
scale = (allAttr && (sk[5] & 31) != 31) ? 0 : sk[6]/100;
|
||||
break;
|
||||
case 178: //无条件盾,属性个数不固定
|
||||
scale = (allAttr && (sk[6] & 31) != 31) ? 0 : sk[7]/100;
|
||||
break;
|
||||
case 130: //血线下 + 属性个数不固定
|
||||
case 131: //血线上 + 属性个数不固定
|
||||
scale = (noHPneed || allAttr && (sk[5] & 31) != 31) ? 0 : sk[6]/100;
|
||||
|
|
|
@ -961,7 +961,7 @@ function getReduceRange(reduceScales)
|
|||
}
|
||||
//获取盾减伤比例组
|
||||
function getReduceScales(leaderid) {
|
||||
const searchTypeArray = [16, 17, 36, 38, 43, 129, 163, 130, 131, 151, 169, 198, 170, 182, 193, 171, 183];
|
||||
const searchTypeArray = [16, 17, 36, 38, 43, 129, 163, 130, 131, 178, 151, 169, 198, 170, 182, 193, 171, 183];
|
||||
const lss = getCardLeaderSkills(Cards[leaderid], searchTypeArray);
|
||||
|
||||
function leaderReduceScale(ls) {
|
||||
|
@ -1035,6 +1035,10 @@ function getReduceScales(leaderid) {
|
|||
}
|
||||
}
|
||||
break;
|
||||
case 178: //无条件盾,属性个数不固定
|
||||
reduce.scale = (sk[7] || 0) / 100;
|
||||
reduce.attrs = 0 | sk[6];
|
||||
break;
|
||||
case 151: //十字心触发
|
||||
case 169: //C触发
|
||||
case 198: //回血触发
|
||||
|
|
Loading…
Reference in New Issue