血量负数
parent
5e9f8a9520
commit
7ba0084c23
|
@ -59,7 +59,7 @@ function RoleLogic:Init(uid, data)
|
|||
Passivity[id](self, args)
|
||||
end
|
||||
|
||||
self.isDead = self:GetRoleData(RoleDataName.Hp) == 0
|
||||
self.isDead = self:GetRoleData(RoleDataName.Hp) <= 0
|
||||
self.Auto = true
|
||||
self.IsDebug = false
|
||||
self.enable = true
|
||||
|
|
|
@ -836,7 +836,11 @@ public class MapLogic {
|
|||
int[] checkResult = CheckFight.getInstance().checkFight(seed, getFightData, getOptionData);
|
||||
List<Integer> remainHp = new ArrayList<>(5);
|
||||
for (int i = 1; i < checkResult.length; i++) {
|
||||
remainHp.add(checkResult[i]);
|
||||
if (checkResult[i] <= 0) {
|
||||
remainHp.add(0);
|
||||
} else {
|
||||
remainHp.add(checkResult[i]);
|
||||
}
|
||||
}
|
||||
//校验结果码 1:胜利
|
||||
int resultCode = checkResult[0];
|
||||
|
@ -1037,7 +1041,11 @@ public class MapLogic {
|
|||
|
||||
List<Integer> remainHp = new ArrayList<>(5);
|
||||
for (int i = 1; i < checkResult.length; i++) {
|
||||
remainHp.add(checkResult[i]);
|
||||
if (checkResult[i] <= 0) {
|
||||
remainHp.add(0);
|
||||
} else {
|
||||
remainHp.add(checkResult[i]);
|
||||
}
|
||||
}
|
||||
//校验结果码 1:胜利
|
||||
int resultCode = checkResult[0];
|
||||
|
|
Loading…
Reference in New Issue