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

Temporal Reprieve has correct requirements

git-svn-id: http://svn.net-core.org/repos/t-engine4@5152 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4e5fc669
No related branches found
No related tags found
No related merge requests found
......@@ -25,13 +25,13 @@ newTalent{
message = "@Source@ rearranges history.",
cooldown = 24,
tactical = { PARADOX = 2 },
getDuration = function(self, t)
getDuration = function(self, t)
local duration = 1 + math.floor(self:getTalentLevel(t)/2)
if self:knowTalent(self.T_PARADOX_MASTERY) then
duration = 1 + math.floor((self:getTalentLevel(t)/2) + (self:getTalentLevel(self.T_PARADOX_MASTERY)/2))
end
return duration
end,
getReduction = function(self, t) return self:combatTalentSpellDamage(t, 20, 200) end,
......@@ -75,7 +75,7 @@ newTalent{
local hit = self:checkHit(self:combatSpellpower(), target:combatSpellResist() + (target:attr("continuum_destabilization") or 0))
if not hit then game.logSeen(target, "%s resists!", target.name:capitalize()) return true end
target:setEffect(target.EFF_CONTINUUM_DESTABILIZATION, 100, {power=self:combatSpellpower(0.3)})
self:project(tg, x, y, DamageType.TEMPORAL, self:spellCrit(t.getDamage(self, t)))
game.level.map:particleEmitter(x, y, 1, "temporal_thrust")
......@@ -83,7 +83,7 @@ newTalent{
-- End it here if we've killed the target or the target is a player
if target.dead or target.player then return true end
-- set up instability
local summoner = self
-- Store the current terrain
......@@ -114,7 +114,7 @@ newTalent{
summoner_gain_exp = true,
summoner = summoner,
}
-- Mixin the old terrain
table.update(temporal_instability, terrain)
-- Now update the display overlay
......@@ -128,12 +128,12 @@ newTalent{
else
table.append(temporal_instability.add_displays, overlay)
end
game.logSeen(target, "%s has moved forward in time!", target.name:capitalize())
game.level:removeEntity(target)
game.level:addEntity(temporal_instability)
game.level.map(target.x, target.y, engine.Map.TERRAIN, temporal_instability)
return true
end,
info = function(self, t)
......@@ -184,7 +184,7 @@ newTalent{
newTalent{
name = "Temporal Reprieve",
type = {"chronomancy/timetravel", 4},
require = chrono_req1,
require = chrono_req4,
points = 5,
paradox = 20,
cooldown = 50,
......@@ -196,7 +196,7 @@ newTalent{
for tid, cd in pairs(self.talents_cd) do
self.talents_cd[tid] = cd - t.getCooldownReduction(self, t)
end
local target = self
local todel = {}
for eff_id, p in pairs(target.tmp) do
......@@ -209,7 +209,7 @@ newTalent{
while #todel > 0 do
target:removeEffect(table.remove(todel))
end
return true
end,
info = 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