Page 1 of 1
[b37] The Cursed Sentry talent does nothing...
Posted: Mon Jan 16, 2012 7:06 pm
by Stition
Whenever you try to use it, you just get the message "You cannot use Cursed Sentry without a cursed weapon in your inventory"...
Tested with a Berserker and an Arcane Blade: both with many, many cursed weapons in their inventory, and the tree mostly maxed out.
Re: [b37] The Cursed Sentry talent does nothing...
Posted: Tue Jan 17, 2012 4:26 am
by benli
This was broken when the Cursed Aura tree was reworked. The fix will make it in when I pass it on, but I put it below in case someone wants to add it to the bug patch.
Code: Select all
@@ -333,13 +330,13 @@
local inven = self:getInven("INVEN")
local found = false
for i, obj in pairs(inven) do
- if type(obj) == "table" and obj.cursed and obj.type == "weapon" then
+ if type(obj) == "table" and obj.type == "weapon" then
found = true
break
end
end
if not found then
- game.logPlayer(self, "You cannot use %s without a cursed weapon in your inventory!", t.name)
+ game.logPlayer(self, "You cannot use %s without a weapon in your inventory!", t.name)
return false
end
@@ -354,7 +351,7 @@
-- select the item
local d = self:showInventory("Which weapon will be your sentry?", inven,
function(o)
- return o.cursed and o.type == "weapon"
+ return o.type == "weapon"
end, nil)
d.action = function(o, item)
d.used_talent = true