Page 1 of 1

[b42] Mindslayers and Inner Demons/Dreamscape

Posted: Wed Sep 05, 2012 6:33 pm
by Torokasi
http://i.imgur.com/HTU6j.png

Basically the game spams errors for a while before stopping. Makes nightmare horrors an ASAP kill before they use Inner Demon, and any solipsist a very large potential pain in the ass.

The error seems to be on Mindslayer side, though, as shown in the error; looking at the code gives

Code: Select all

	tactical = { ATTACK = function(self, t, target)
		local val = { PHYSICAL = 2}
		local gem_level = getGemLevel(self)
		if gem_level > 0 and not target.dead and self:knowTalent(self.T_CONDUIT) and self:isTalentActive(self.T_CONDUIT) then
			local c =  self:getTalentFromId(self.T_CONDUIT)
			local auras = self:isTalentActive(c.id)
			if auras.k_aura_on then
				val[PHYSICAL] = val[PHYSICAL] + 1
			end
			if auras.t_aura_on then
				val[FIRE] = 1
			end
			if auras.c_aura_on then
				val[LIGHTNING] = 1
			end
			return val
		end
		return 0
	end },
with " val[PHYSICAL] = val[PHYSICAL] + 1 " being what it crashes on. Maybe have it directly set to 3 instead?

Re: [b42] Mindslayers and Inner Demons/Dreamscape

Posted: Wed Sep 05, 2012 10:50 pm
by aardvark
It looks like a simple syntax flub, easily fixed.

Code: Select all

--- focus.lua	2012-06-19 15:32:43.000000000 -0700
+++ focus-pat.lua	2012-09-05 15:42:52.171875000 -0700
@@ -41,13 +41,13 @@
 			local c =  self:getTalentFromId(self.T_CONDUIT)
 			local auras = self:isTalentActive(c.id)
 			if auras.k_aura_on then
-				val[PHYSICAL] = val[PHYSICAL] + 1
+				val.PHYSICAL = val.PHYSICAL + 1
 			end
 			if auras.t_aura_on then
-				val[FIRE] = 1
+				val.FIRE = 1
 			end
 			if auras.c_aura_on then
-				val[LIGHTNING] = 1
+				val.LIGHTNING = 1
 			end
 			return val
 		end