Commit 13644be1bbb510bfd5a5efc1f54247fd231bfba4

Authored by DarkGod
2 parents 40983cd7 08c6b9c5

Merge branch 'vile-transplant-limit-fix' into 'master'

Fix Vile Transplant effect limit.



See merge request !753
@@ -198,9 +198,10 @@ newTalent{ @@ -198,9 +198,10 @@ newTalent{
198 self:removeEffect(eff_id) 198 self:removeEffect(eff_id)
199 game:delayedLogMessage(self, target, "vile_transplant"..e.desc, ("#CRIMSON##Source# transfers an effect (%s) to #Target#!"):tformat(e.desc)) 199 game:delayedLogMessage(self, target, "vile_transplant"..e.desc, ("#CRIMSON##Source# transfers an effect (%s) to #Target#!"):tformat(e.desc))
200 self:incVim(-t.getVim(self, t)) -- Vim costs life if there isn't enough so no need to check total 200 self:incVim(-t.getVim(self, t)) -- Vim costs life if there isn't enough so no need to check total
  201 + nb = nb - 1
201 end 202 end
202 end 203 end
203 - nb = nb - 1 204 +
204 end) 205 end)
205 local _ _, _, _, x, y = self:canProject(tg, x, y) 206 local _ _, _, _, x, y = self:canProject(tg, x, y)
206 game.level.map:particleEmitter(x, y, tg.radius, "circle", {oversize=0.7, g=100, r=100, a=90, limit_life=8, appear=8, speed=2, img="blight_circle", radius=self:getTalentRadius(t)}) 207 game.level.map:particleEmitter(x, y, tg.radius, "circle", {oversize=0.7, g=100, r=100, a=90, limit_life=8, appear=8, speed=2, img="blight_circle", radius=self:getTalentRadius(t)})