被动技能计算加入非空判断

master_0.05
DESKTOP-C3M45P4\dengdan 2025-07-01 12:25:07 +08:00
parent 24d05a21b2
commit e0ceee8c20
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ public enum PassiveskillCalEnum {
float[] value = config.getValue(); float[] value = config.getValue();
int battlePropertyId = (int) value[0]; int battlePropertyId = (int) value[0];
SPropertyConfig sPropertyConfig = SPropertyConfig.getsPropertyConfigByBattlePID(battlePropertyId); SPropertyConfig sPropertyConfig = SPropertyConfig.getsPropertyConfigByBattlePID(battlePropertyId);
if(sPropertyConfig == null){
return;
}
int optCode = (int) value[2]; int optCode = (int) value[2];
//转换 //转换
float parm = value[1]; float parm = value[1];