Commit e7b517637b6750d9eed6f08052a6ed7a1d68d2ee

Authored by zhouhaihai
1 parent 5854fd56

无掉落怪

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
src/adv/Adv.lua
... ... @@ -1814,8 +1814,12 @@ function Adv:enemyDead(enemy, escape)
1814 1814 if buff then
1815 1815 item = table.pack(buff:effect())
1816 1816 else
1817   - local dropData = csvdb["event_dropCsv"][monsterData.dropid]
1818   - item = dropData["range"]:randWeight(true)
  1817 + if monsterData.dropid == 0 then
  1818 + item = {0, 0}
  1819 + else
  1820 + local dropData = csvdb["event_dropCsv"][monsterData.dropid]
  1821 + item = dropData["range"]:randWeight(true)
  1822 + end
1819 1823 end
1820 1824  
1821 1825 end
... ...