Skip to content
Snippets Groups Projects
Commit 40c9cc06 authored by DarkGod's avatar DarkGod
Browse files

Fixed Ice Wall and Devouring Flame to not crit before target is acquired

parent c995a3cf
No related branches found
No related tags found
No related merge requests found
......@@ -134,10 +134,10 @@ newTalent{
local tg = self:getTalentTarget(t)
local x, y = self:getTarget(tg)
if not x or not y then return nil end
local ice_damage = self:mindCrit(t.getIceDamage(self, t))
local ice_radius = t.getIceRadius(self, t)
local _ _, _, _, x, y = self:canProject(tg, x, y)
if game.level.map:checkEntity(x, y, Map.TERRAIN, "block_move") then return nil end
local ice_damage = self:mindCrit(t.getIceDamage(self, t))
local ice_radius = t.getIceRadius(self, t)
self:project(tg, x, y, function(px, py, tg, self)
local oe = game.level.map(px, py, Map.TERRAIN)
......
......@@ -133,13 +133,15 @@ newTalent{
end,
getDuration = function(self, t) return math.floor(self:combatTalentScale(t, 5, 9)) end,
action = function(self, t)
local duration = t.getDuration(self, t)
local radius = self:getTalentRadius(t)
local damage = self:mindCrit(t.getDamage(self, t))
local tg = self:getTalentTarget(t)
local x, y = self:getTarget(tg)
if not x or not y then return nil end
local _ _, _, _, x, y = self:canProject(tg, x, y)
local duration = t.getDuration(self, t)
local radius = self:getTalentRadius(t)
local damage = self:mindCrit(t.getDamage(self, t))
-- Add a lasting map effect
game.level.map:addEffect(self,
x, y, duration,
......
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