Skip to content
Snippets Groups Projects
Commit aaf576d9 authored by DarkGod's avatar DarkGod
Browse files

fix

parent 2d285401
No related branches found
No related tags found
No related merge requests found
......@@ -926,9 +926,10 @@ end
--- Helper function to add temporary particles and not have to remove them manualy
function _M:talentParticles(p, ...)
local Particles = require "engine.Particles"
if not p.__tmpparticles then p.__tmpparticles = {} end
for _, ps in ipairs{...} do
p.__tmpparticles[#p.__tmpparticles+1] = ps
p.__tmpparticles[#p.__tmpparticles+1] = self:addParticles(Particles.new(ps.type, 1, ps.args))
end
end
......
......@@ -258,9 +258,10 @@ end
--- Helper function to add particles and not have to remove them manualy
function _M:effectParticles(eff, ...)
local Particles = require "engine.Particles"
if not eff.__tmpparticles then eff.__tmpparticles = {} end
for _, p in ipairs{...} do
eff.__tmpparticles[#eff.__tmpparticles+1] = p
eff.__tmpparticles[#eff.__tmpparticles+1] = self:addParticles(Particles.new(p.type, 1, p.args))
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment