Răsfoiți Sursa

主线怪物表2相关修改

gitxsm 2 luni în urmă
părinte
comite
ffc33c24a5
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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