[b42] Error in lua code for Steady Mind talent

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

[b42] Error in lua code for Steady Mind talent

#1 Post by jenx »

I've been puzzled as to why my defence was being rasied by Steady Mind when I pumped Cunning, as the description says it rises with Dexterity. So I checked the code and found the reason:

Code: Select all

newTalent{
	name = "Steady Mind",
	type = {"technique/unarmed-training", 2},
	mode = "passive",
	points = 5,
	require = techs_cun_req2,
	getDefense = function(self, t) return self:combatTalentStatDamage(t, "cun", 5, 35) end,
	getMental = function(self, t) return self:combatTalentStatDamage(t, "cun", 5, 35) end,
	info = function(self, t)
		local defense = t.getDefense(self, t)
		local saves = t.getMental(self, t)
		return ([[Superior cunning and training allows you to out think and out wit your opponents physical and mental assualts.  Increases defense by %d and mental saves by %d.
		The defense bonus will scale with the Dexterity stat and the save bonus with the Cunning stat.]]):
		format(defense, saves)
	end,
}
I think

Code: Select all

getDefense = function(self, t) return self:combatTalentStatDamage(t, "cun", 5, 35) end,
should be

Code: Select all

getDefense = function(self, t) return self:combatTalentStatDamage(t, "dex", 5, 35) end,
MADNESS rocks

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: [b42] Error in lua code for Steady Mind talent

#2 Post by darkgod »

fixed
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply