Skip to content
Snippets Groups Projects
Commit 721818e6 authored by Eric Wykoff's avatar Eric Wykoff
Browse files

alchemists too :)

parent 1c4e870e
No related branches found
No related tags found
1 merge request!191More fixes
......@@ -65,8 +65,10 @@ newTalent{
local tg = self:getTalentTarget(t)
local x, y = self:getTarget(tg)
if not x or not y then return nil end
self:attr("no_sound", 1)
ammo = self:removeObject(self:getInven("QUIVER"), 1)
self:attr("no_sound", -1)
if not ammo then return end
local dam, damtype, particle = t.computeDamage(self, t, ammo)
......
......@@ -281,7 +281,9 @@ newTalent{
game.logPlayer(self, "You need to ready 2 alchemist gems in your quiver to heal your golem.")
return
end
self:attr("no_sound", 1)
for i = 1, 2 do self:removeObject(self:getInven("QUIVER"), 1) end
self:attr("no_sound", -1)
self.alchemy_golem:attr("allow_on_heal", 1)
self.alchemy_golem:heal(t.getHeal(self, t), self)
self.alchemy_golem:attr("allow_on_heal", -1)
......@@ -297,7 +299,9 @@ newTalent{
return
end
if not wait() then return end
self:attr("no_sound", 1)
for i = 1, 15 do self:removeObject(self:getInven("QUIVER"), 1) end
self:attr("no_sound", -1)
self.alchemy_golem.dead = nil
if self.alchemy_golem.life < 0 then self.alchemy_golem.life = self.alchemy_golem.max_life / 3 end
......
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