Skip to content
Snippets Groups Projects
Commit e1df31b1 authored by dg's avatar dg
Browse files

Creatures killed by traps correctly drop alchemist ingredients

git-svn-id: http://svn.net-core.org/repos/t-engine4@4113 51575b47-30f0-44d4-a5cc-537603b46e54
parent 243f1ce6
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,9 @@ end
--called in the on_die functions of ingredient-dropping monsters to determine if they should really drop their ingredient
need_part = function(self, player, ingredient, monster)
if self:isEnded() then return end
if not player or not game.party:hasMember(player) or player.suppress_alchemist_drops then return end
local oplayer = player
if player.resolveSource then player = player:resolveSource() end
if not player or not game.party:hasMember(player) or oplayer.suppress_alchemist_drops then return end
local list = self.needed_ingredients
local needed = false
local ing_list = mod.class.Object:loadList("/data/general/objects/elixir-ingredients.lua")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment