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

fix


git-svn-id: http://svn.net-core.org/repos/t-engine4@271 51575b47-30f0-44d4-a5cc-537603b46e54
parent c5b12067
No related branches found
No related tags found
No related merge requests found
newAI("summoned", function(self)
-- Do the normal AI, otherwise follows summoner
if self:runAI("target_simple") then
return self:runAI(self.ai_real)
else
self.ai_target.actor = self.summoner
local ret = self:runAI(self.ai_real)
self.ai_target.actor = nil
return ret
end
end)
......@@ -35,7 +35,10 @@ newTalent{
-- Go through all spell effects
for eff_id, p in pairs(target.tmp) do
effs[#effs+1] = {"effect", eff_id}
local e = target.tempeffect_def[eff_id]
if e.type == "magical" then
effs[#effs+1] = {"effect", eff_id}
end
end
-- Go through all sustained spells
......
......@@ -47,8 +47,8 @@ newTalent{
newTalent{
name = "Essence of Speed",
type = {"spell/temporal",4},
require = spells_req4,
type = {"spell/temporal",3},
require = spells_req3,
points = 5,
mode = "sustained",
sustain_mana = 450,
......@@ -71,3 +71,25 @@ newTalent{
The speed increases with the Magic stat]]):format(util.bound((self:combatSpellpower(50) * self:getTalentLevel(t)) / 100, 0.1, 2))
end,
}
newTalent{
name = "Time Shield",
type = {"spell/temporal", 4},
require = spells_req4,
points = 5,
mana = 150,
cooldown = 200,
tactical = {
DEFENSE = 10,
},
range = 20,
action = function(self, t)
print("IMPLEMENT ME §!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
return true
end,
info = function(self, t)
return ([[This intricate spell erects time shield around the caster, preventing any incomming damage and sending it forward in time.
Once the maximun damage (%d) is absorbed or the time runs out (%d turns) the stored damage will come back as a damage over time.
The duration and max absorption will increase with the Magic stat]]):format(4 + self:combatSpellpower(0.03) * self:getTalentLevel(t), 1)
end,
}
No preview for this file type
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