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

sanity

git-svn-id: http://svn.net-core.org/repos/t-engine4@3822 51575b47-30f0-44d4-a5cc-537603b46e54
parent bedf03d8
No related branches found
No related tags found
No related merge requests found
......@@ -304,6 +304,7 @@ newTalent{
action = function(self, t)
local tg = {type="hit", range=self:getTalentRange(t)}
local x, y, target = self:getTarget(tg)
if not x then return nil end
if math.floor(core.fov.distance(self.x, self.y, x, y)) > 1 then return nil end
self:attackTarget(target, DamageType.POISON, 2 + self:getTalentLevel(t), true)
return true
......
......@@ -214,7 +214,7 @@ function _M:drawDialog(kind, actor_to_compare)
end
end
if value2 and value2 ~= value then
if value and value2 and value2 ~= value then
if added == 0 and not nobracets then
ret:add(" (")
elseif added > 1 then
......
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