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

Bone Nova correctly refunds Vim on kill

git-svn-id: http://svn.net-core.org/repos/t-engine4@4693 51575b47-30f0-44d4-a5cc-537603b46e54
parent 928dae1f
No related branches found
No related tags found
No related merge requests found
......@@ -1223,8 +1223,8 @@ newDamageType{
name = "drain vim", type = "DRAIN_VIM",
projector = function(src, x, y, type, dam)
if _G.type(dam) == "number" then dam = {dam=dam, vim=0.2} end
local realdam = DamageType:get(DamageType.BLIGHT).projector(src, x, y, DamageType.BLIGHT, dam.dam)
local target = game.level.map(x, y, Map.ACTOR)
local realdam = DamageType:get(DamageType.BLIGHT).projector(src, x, y, DamageType.BLIGHT, dam.dam)
if target and target ~= src and realdam > 0 then
src:incVim(realdam * dam.vim * target:getRankVimAdjust())
end
......
......@@ -57,7 +57,7 @@ newTalent{
tactical = { DISABLE = 1, CLOSEIN = 3 },
requires_target = true,
action = function(self, t)
local tg = {type="bolt", range=self:getTalentRange(t)}
local tg = {type="bolt", range=self:getTalentRange(t), talent=t}
local x, y = self:getTarget(tg)
if not x or not y then return nil end
......@@ -101,7 +101,7 @@ newTalent{
return self:getTalentLevelRaw(t)
end,
target = function(self, t)
return {type="ball", radius=self:getTalentRadius(t), selffire=false}
return {type="ball", radius=self:getTalentRadius(t), selffire=false, talent=t}
end,
action = function(self, t)
local tg = self:getTalentTarget(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