Skip to content
Snippets Groups Projects
Commit 489a05a4 authored by dg's avatar dg
Browse files

they are getting smart

git-svn-id: http://svn.net-core.org/repos/t-engine4@6710 51575b47-30f0-44d4-a5cc-537603b46e54
parent d88d2f27
No related branches found
No related tags found
No related merge requests found
......@@ -295,8 +295,8 @@ function _M:projectile(t, x, y, damtype, dam, particles)
-- if type(dam) == "number" and dam < 0 then return end
local typ = Target:getType(t)
typ.source_actor = self
typ.start_x = typ.start_x or typ.x or typ.source_actor and typ.source_actor.x or self.x
typ.start_y = typ.start_y or typ.y or typ.source_actor and typ.source_actor.y or self.x
typ.start_x = typ.start_x or typ.x or (typ.source_actor and typ.source_actor.x or self.x)
typ.start_y = typ.start_y or typ.y or (typ.source_actor and typ.source_actor.y or self.y)
if self.lineFOV then
typ.line_function = self:lineFOV(x, y, nil, nil, typ.start_x, typ.start_y)
else
......
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