Inferno Duration (tooltip bug)

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Inferno Duration (tooltip bug)

#1 Post 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,
}

Post Reply