[b37] The Cursed Sentry talent does nothing...

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Stition
Higher
Posts: 64
Joined: Sun Nov 20, 2011 12:21 am

[b37] The Cursed Sentry talent does nothing...

#1 Post 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.

benli
Thalore
Posts: 125
Joined: Tue Aug 17, 2010 5:02 am

Re: [b37] The Cursed Sentry talent does nothing...

#2 Post 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

Post Reply