Code: Select all
if not force and map:checkAllEntities(x, y, "block_move", self, true) then return true end
Code: Select all
if not force and not self:canMove(x, y) then return true end
Moderator: Moderator
Code: Select all
if not force and map:checkAllEntities(x, y, "block_move", self, true) then return true end
Code: Select all
if not force and not self:canMove(x, y) then return true end
<DarkGod> lets say it's intended
Code: Select all
map:checkAllEntities(x, y, "block_move", self, true)
Code: Select all
function _M:checkAllEntities(x, y, what, ...)
...
local p = e:check(what, x, y, ...)
Code: Select all
function _M:check(prop, ...)
if type(self[prop]) == "function" then return self[prop](self, ...)
else return self[prop]
end
end
Code: Select all
function _M:block_move(x, y, e, can_attack)
-- Dont bump yourself!
if e and e ~= self and can_attack then
e:attack(self)
end
return true
end
<DarkGod> lets say it's intended