gitxsm 2 tháng trước cách đây
mục cha
commit
4e7f33ec3c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      script/module/combat/CombatImpl.lua

+ 1 - 1
script/module/combat/CombatImpl.lua

@@ -189,7 +189,7 @@ function setData(pos, hero)
     if hero.type == CombatDefine.COMBAT_OBJ_TYPE1 then
        obj.hurtType = HeroExcel[obj.id].hurtType
     else
-       obj.hurtType = MonsterExcel[obj.id].hurtType
+       obj.hurtType = MonsterExcel[obj.id] and MonsterExcel[obj.id].hurtType
 	   if not obj.hurtType then
 			if BattleMonsterExcel[obj.id] or BattleMonsterExcel2[obj.id] then
 				-- obj.hurtType = BattleMonsterExcel[obj.id].hurtType or 0