diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua index 12d782c..a44d929 100644 --- a/game/modules/tome/class/Actor.lua +++ b/game/modules/tome/class/Actor.lua @@ -4187,20 +4187,6 @@ function _M:on_set_temporary_effect(eff_id, e, p) end end --- @param t a type table describing the attack, passed to engine.Target:getType() for interpretation --- @param x target coords --- @param y target coords --- @return can_project, stop_x, stop_y, radius_x, radius_y. -function _M:canProject(t, x, y) - local can_project, stop_x, stop_y, radius_x, radius_y = engine.interface.ActorProject.canProject(self, t, x, y) - - -- add line of sight to can project unless pass_block_sight or pass_terrain has been set - if not t.pass_terain and not t.pass_block_sight and can_project then - if not self:hasLOS(x, y) then can_project = false end - end - return can_project, stop_x, stop_y, radius_x, radius_y -end - --- Called when we are the target of a projection function _M:on_project_acquire(tx, ty, who, t, x, y, damtype, dam, particles, is_projectile, mods) if is_projectile and self:attr("projectile_evasion") and rng.percent(self.projectile_evasion) then @@ -4229,13 +4215,6 @@ function _M:on_project(tx, ty, who, t, x, y, damtype, dam, particles) return true end - -- LOS check (this is also caught by canProject) - if not t.pass_terain and not t.pass_block_sight and who.hasLOS then - if not who:hasLOS(tx, ty) then - return true - end - end - return false end