Page 1 of 1

Inferno Duration (tooltip bug)

Posted: Sat Jan 08, 2011 6:25 am
by edge2054
The damage function is getting called twice so duration never gets called.

Code: Select all

	info = function(self, t)
		local damage = t.getDamage(self, t)
		local duration = t.getDamage(self, t)
		return ([[Raging flames burn foes and allies alike doing %0.2f fire damage in a radius of 5 each turn for %d turns.
		The damage will increase with the Magic stat]]):
		format(damDesc(self, DamageType.FIRE, damage), duration)
	end,
}
Should be...

Code: Select all

	info = function(self, t)
		local damage = t.getDamage(self, t)
		local duration = t.getDuration(self, t)
		return ([[Raging flames burn foes and allies alike doing %0.2f fire damage in a radius of 5 each turn for %d turns.
		The damage will increase with the Magic stat]]):
		format(damDesc(self, DamageType.FIRE, damage), duration)
	end,
}