Skip to content
Snippets Groups Projects
Commit 67b02d8b authored by Grayswandir's avatar Grayswandir
Browse files

Attack and Shoot display proper speeds.

parent a2b766d2
No related branches found
No related tags found
1 merge request!19Speed fix for edge
......@@ -48,6 +48,7 @@ newTalent{
tactical = { ATTACK = { PHYSICAL = 1 } },
no_unlearn_last = true,
ignored_by_hotkeyautotalents = true,
speed = 'weapon',
action = function(self, t)
local tg = self:getTalentTarget(t)
local x, y = self:getTarget(tg)
......@@ -311,7 +312,7 @@ newTalent{
-- Check for visible monsters, only see LOS actors, so telepathy wont prevent it
core.fov.calc_circle(self.x, self.y, game.level.map.w, game.level.map.h, 20, function(_, x, y) return game.level.map:opaque(x, y) end, function(_, x, y)
local actor = game.level.map(x, y, game.level.map.ACTOR)
if actor and actor ~= self then
if actor and actor ~= self then
if actor.summoner and actor.summoner == self then
seen = false
else
......
......@@ -22,6 +22,7 @@ newTalent{
name = "Shoot",
type = {"technique/archery-base", 1},
no_energy = "fake",
speed = 'archery',
hide = true,
innate = true,
points = 1,
......@@ -112,7 +113,7 @@ newTalent{
local q = self:hasAmmo()
if not q then if not silent then game.logPlayer(self, "You must have a quiver or pouch equipped.") end return false end
if q.combat.shots_left >= q.combat.capacity then return false end
return true
return true
end,
no_unlearn_last = true,
action = function(self, t)
......
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