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

Temporal Clone can not be used out of range

parent 8e3fba36
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,9 @@ newTalent{
local tg = {type="hit", range=self:getTalentRange(t), talent=t}
local tx, ty, target = self:getTarget(tg)
if not tx or not ty then return nil end
local _ _, _, _, tx, ty = self:canProject(tg, tx, ty)
if not tx or not ty then return nil end
local target = game.level.map(tx, ty, Map.ACTOR)
if not target or self:reactionToward(target) >= 0 then return end
-- Find space
......
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