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

Freeze spell duration now increases with talent level

git-svn-id: http://svn.net-core.org/repos/t-engine4@3280 51575b47-30f0-44d4-a5cc-537603b46e54
parent f9c3b7c3
No related branches found
No related tags found
No related merge requests found
......@@ -81,14 +81,14 @@ newTalent{
if not x or not y then return nil end
local dam = self:spellCrit(t.getDamage(self, t))
self:project(tg, x, y, DamageType.COLD, dam, {type="freeze"})
self:project(tg, x, y, DamageType.FREEZE, {dur=3, hp=70 + dam * 1.5})
self:project(tg, x, y, DamageType.FREEZE, {dur=2+math.ceil(self:getTalentLevelRaw(t)), hp=70 + dam * 1.5})
game:playSoundNear(self, "talents/ice")
return true
end,
info = function(self, t)
local damage = t.getDamage(self, t)
return ([[Condenses ambient water on a target, freezing it for 3 turns and damaging it for %0.2f.
The damage will increase with the Magic stat]]):format(damDesc(self, DamageType.COLD, damage))
return ([[Condenses ambient water on a target, freezing it for %d turns and damaging it for %0.2f.
The damage will increase with the Magic stat]]):format(2+math.ceil(self:getTalentLevelRaw(t)), damDesc(self, DamageType.COLD, damage))
end,
}
......
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