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

Corona will deactivate when it tries to fire a bolt without enough energy

git-svn-id: http://svn.net-core.org/repos/t-engine4@2698 51575b47-30f0-44d4-a5cc-537603b46e54
parent 88485acb
No related branches found
No related tags found
No related merge requests found
......@@ -67,8 +67,8 @@ function _M:generate()
end
end)
self.key:addBinds{
MOVE_UP = function() self.scroll = util.bound(self.scroll - 1, 1, self.max - self.max_display + 1) end,
MOVE_DOWN = function() self.scroll = util.bound(self.scroll + 1, 1, self.max - self.max_display + 1) end,
MOVE_UP = function() if self.scroll then self.scroll = util.bound(self.scroll - 1, 1, self.max - self.max_display + 1) end end,
MOVE_DOWN = function() if self.scroll then self.scroll = util.bound(self.scroll + 1, 1, self.max - self.max_display + 1) end end,
}
end
......
......@@ -82,6 +82,10 @@ newTalent{
getLightDamage = function(self, t) return self:combatTalentSpellDamage(t, 15, 70) end,
getDarknessDamage = function(self, t) return self:combatTalentSpellDamage(t, 15, 70) end,
on_crit = function(self, t)
if self:getPositive() < 2 or self:getNegative() < 2 then
self:forceUseTalent(t.id, {ignore_energy=true})
return
end
local tgts = {}
local grids = core.fov.circle_grids(self.x, self.y, 10, true)
for x, yy in pairs(grids) do for y, _ in pairs(grids[x]) do
......
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