Skip to content
Snippets Groups Projects
Commit 4eb8e454 authored by Alex Ksandra's avatar Alex Ksandra
Browse files

Clicking Willful Strike on empty square shouldn't bug out.

parent f4560478
No related branches found
No related tags found
1 merge request!153Small fixes
......@@ -123,7 +123,7 @@ newTalent{
local tg = {type="hit", range=self:getTalentRange(t), t=t}
local x, y, target = self:getTarget(tg)
if not self:canProject(tg, x, y) then return nil end
if not self:canProject(tg, x, y) or not target then return nil end
--local distance = math.max(1, core.fov.distance(self.x, self.y, x, y))
local power = 1 --(1 - ((distance - 1) / range))
......
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