Commit 294408d9ad7163d90774de4695056de31677e089

Authored by zhouhaihai
1 parent e0c0365a

伤害错误

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/adv/AdvPlayer.lua
@@ -349,7 +349,7 @@ function BaseObject:hurt(value, releaser, params) @@ -349,7 +349,7 @@ function BaseObject:hurt(value, releaser, params)
349 end 349 end
350 350
351 if params.hurtType ~= 5 then 351 if params.hurtType ~= 5 then
352 - if params.hurtType ~= 6 or params.hurtType ~= 4 then 352 + if params.hurtType ~= 6 and params.hurtType ~= 4 then
353 value = math.max(0, value - self.def) 353 value = math.max(0, value - self.def)
354 end 354 end
355 value = self:getInjuredValue(value) --减伤计算 355 value = self:getInjuredValue(value) --减伤计算