Skip to content
Snippets Groups Projects
Commit 3fc3ec47 authored by Recaiden's avatar Recaiden
Browse files

Melee-summons auto-cast and no warning works for hovering player.

parent c6272a53
No related branches found
No related tags found
No related merge requests found
......@@ -308,6 +308,7 @@ function _M:targetGetForPlayer(typ)
msg = typ.msg
end
self:targetMode("exclusive", msg, coroutine.running(), typ)
if typ.nowarning then self.target_warning = false end
if self.target.target.x and config.settings.auto_accept_target and not typ.immediate_keys and not typ.nolock and not typ.no_restrict then
self.target_co = nil
self:targetMode(false, false) self.tooltip_x, self.tooltip_y = nil, nil
......@@ -315,7 +316,6 @@ function _M:targetGetForPlayer(typ)
end
if typ.immediate_keys then self.target_style = "immediate" end
if typ.nolock then self.target_style = "free" end
if typ.nowarning then self.target_warning = false end
return coroutine.yield()
end
return self.target.target.x, self.target.target.y, self.target.target.entity
......
......@@ -60,7 +60,7 @@ newTalent{
}
end,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), talent=t}
--print("war hound targeting:") table.print(tg) -- debugging
local tx, ty, target = self:getTarget(tg)
if not tx or not ty then return nil end
......@@ -157,7 +157,7 @@ newTalent{
}
end,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, 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)
......@@ -268,7 +268,7 @@ newTalent{
}
end,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, 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)
......@@ -373,7 +373,7 @@ newTalent{
}
end,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, 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)
......
......@@ -140,7 +140,7 @@ newTalent{
end)
end,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, 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)
......
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