[1.3.1] alterEffectDuration ignores its passed value

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
stinkstink
Spiderkin
Posts: 543
Joined: Sat Feb 11, 2012 1:12 am

[1.3.1] alterEffectDuration ignores its passed value

#1 Post by stinkstink »

Code: Select all

function _M:alterEffectDuration(eff_id, v)
	local e = self.tmp[eff_id]
	if not e then return end
	e.dur = e.dur - 1
	if e.dur <= 0 then self:removeEffect(eff_id) return true end
end
Should be e.dur = e.dur + v, shouldn't it?

Post Reply