gitxsm 2 月之前
父節點
當前提交
4e7f33ec3c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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