|
|
@@ -567,7 +567,7 @@ local function fontCombatHeroNet(net, obj)
|
|
|
end
|
|
|
end
|
|
|
end
|
|
|
- net.hpMax = CombatObj.getHpMax(obj)
|
|
|
+ net.hpMax = obj.hpMax --CombatObj.getHpMax(obj)
|
|
|
net.hpNow = obj.initHp
|
|
|
net.icon = config.head
|
|
|
net.width = config.width
|
|
|
@@ -1090,7 +1090,8 @@ function recalcHpFightBegin(human, combatType, cbParam)
|
|
|
elseif combatType == CombatDefine.COMBAT_TYPE8 then
|
|
|
LianyuLogic.recalcHpFightBegin(human, i, atkObj)
|
|
|
end
|
|
|
- end
|
|
|
+ end
|
|
|
+ atkObj.hpMax = CombatObj.getHpMax(atkObj)
|
|
|
atkObj.hp = atkObj.hp or CombatObj.getHpMax(atkObj)
|
|
|
atkObj.mp = atkObj.mp or atkObj.attr[RoleDefine.INIT_MP]
|
|
|
atkObj.initHp = atkObj.hp
|
|
|
@@ -1106,7 +1107,8 @@ function recalcHpFightBegin(human, combatType, cbParam)
|
|
|
elseif combatType == CombatDefine.COMBAT_TYPE17 then
|
|
|
ValleyLogic.calcAttr(CombatDefine.DEFEND_SIDE, i, defObj, cbParam)
|
|
|
end
|
|
|
- end
|
|
|
+ end
|
|
|
+ defObj.hpMax = CombatObj.getHpMax(defObj)
|
|
|
defObj.hp = defObj.hp or CombatObj.getHpMax(defObj)
|
|
|
defObj.mp = defObj.mp or defObj.attr[RoleDefine.INIT_MP]
|
|
|
defObj.initHp = defObj.hp
|