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

One With Nature is now instant cast

Virulent Disease is now instant cast


git-svn-id: http://svn.net-core.org/repos/t-engine4@5040 51575b47-30f0-44d4-a5cc-537603b46e54
parent 01242db1
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ newTalent{ short_name = "NATURE_TOUCH",
if not x or not y or not target then return nil end
if core.fov.distance(self.x, self.y, x, y) > 1 then return nil end
if not target:attr("undead") then
target:heal(20 + self:combatTalentMindDamage(t, 20, 500))
target:heal(self:mindCrit(20 + self:combatTalentMindDamage(t, 20, 500)))
end
game:playSoundNear(self, "talents/heal")
return true
......
......@@ -210,7 +210,7 @@ newTalent{
local tg = self:getTalentTarget(t)
local x, y = self:getTarget(tg)
if not x or not y then return nil end
self:project(tg, x, y, DamageType.ICE, self:combatTalentStatDamage(t, "str", 30, 430))
self:project(tg, x, y, DamageType.ICE, self:mindCrit(self:combatTalentStatDamage(t, "str", 30, 430)))
game.level.map:particleEmitter(self.x, self.y, tg.radius, "breath_cold", {radius=tg.radius, tx=x-self.x, ty=y-self.y})
game:playSoundNear(self, "talents/breath")
return true
......
......@@ -77,7 +77,7 @@ newTalent{
local tg = self:getTalentTarget(t)
local x, y = self:getTarget(tg)
if not x or not y then return nil end
self:project(tg, x, y, DamageType.PHYSKNOCKBACK, {dam=self:combatTalentStatDamage(t, "str", 15, 90), dist=4})
self:project(tg, x, y, DamageType.PHYSKNOCKBACK, {dam=self:mindCrit(self:combatTalentStatDamage(t, "str", 15, 90)), dist=4})
game:playSoundNear(self, "talents/breath")
return true
end,
......@@ -115,7 +115,7 @@ newTalent{
action = function(self, t)
local duration = t.getDuration(self, t)
local radius = self:getTalentRadius(t)
local dam = t.getDamage(self, t)
local dam = 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
......@@ -165,7 +165,7 @@ newTalent{
local tg = self:getTalentTarget(t)
local x, y = self:getTarget(tg)
if not x or not y then return nil end
self:project(tg, x, y, DamageType.FIREBURN, {dam=self:combatTalentStatDamage(t, "str", 30, 550), dur=3, initial=70})
self:project(tg, x, y, DamageType.FIREBURN, {dam=self:mindCrit(self:combatTalentStatDamage(t, "str", 30, 550)), dur=3, initial=70})
game.level.map:particleEmitter(self.x, self.y, tg.radius, "breath_fire", {radius=tg.radius, tx=x-self.x, ty=y-self.y})
game:playSoundNear(self, "talents/breath")
return true
......
......@@ -44,7 +44,7 @@ newTalent{
nb = nb + 1
end
end
self:heal(nb * self:combatTalentStatDamage(t, "wil", 20, 60))
self:heal(self:mindCrit(nb * self:combatTalentStatDamage(t, "wil", 20, 60)))
self:setEffect(self.EFF_WATERS_OF_LIFE, 5 + self:getTalentLevel(t), {})
......@@ -103,6 +103,7 @@ newTalent{
points = 5,
equilibrium = 15,
cooldown = 30,
no_energy = true,
tactical = { BUFF = 2 },
on_pre_use = function(self, t) return self:hasEffect(self.EFF_INFUSION_COOLDOWN) end,
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