Commit d27a2b20dfa0c037a61edaadf704ba7872fa2df1

Authored by zhouhaihai
1 parent 1defecc4

怪受伤 更新地块

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
src/adv/AdvPlayer.lua
... ... @@ -395,6 +395,11 @@ function BaseObject:hurt(value, releaser, params)
395 395  
396 396 --受伤了~
397 397 self.battle.adv:backHpChange(self.monsterId, -value)
  398 + if params.hurtType ~= 5 then -- 非客户端发回的伤害 返回更新地块
  399 + if self.roomId and self.blockId then
  400 + self.battle.adv:backBlockChange(self.roomId, self.blockId)
  401 + end
  402 + end
398 403 self.hp = math.max(0, self.hp - value)
399 404  
400 405 if self.cutHp then
... ...