|
@@ -659,11 +659,11 @@ function CMD.hurt(obj,skillConfig,skillTargets)
|
|
|
hp = calcHp(obj,target,calcType,rate,limit)
|
|
hp = calcHp(obj,target,calcType,rate,limit)
|
|
|
if hp ~= 0 then
|
|
if hp ~= 0 then
|
|
|
local d, _, extraHandleTb = CombatObj.updateHp(target,-hp,nil,true, obj.pos,CombatObj.EXTRA_HP_TYPE)
|
|
local d, _, extraHandleTb = CombatObj.updateHp(target,-hp,nil,true, obj.pos,CombatObj.EXTRA_HP_TYPE)
|
|
|
- if d ~= 0 then
|
|
|
|
|
|
|
+ -- if d ~= 0 then
|
|
|
CombatImpl.setExtraHit(target,-hp,CMD2ID["hurt"])
|
|
CombatImpl.setExtraHit(target,-hp,CMD2ID["hurt"])
|
|
|
CombatObj.onHpCB(target,d, obj.pos)
|
|
CombatObj.onHpCB(target,d, obj.pos)
|
|
|
ret[#ret+1] = target
|
|
ret[#ret+1] = target
|
|
|
- end
|
|
|
|
|
|
|
+ -- end
|
|
|
|
|
|
|
|
if extraHandleTb then
|
|
if extraHandleTb then
|
|
|
ExtraHandle(target, extraHandleTb)
|
|
ExtraHandle(target, extraHandleTb)
|