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

moar

git-svn-id: http://svn.net-core.org/repos/t-engine4@5542 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7d913176
No related branches found
No related tags found
No related merge requests found
......@@ -206,10 +206,24 @@ newTalent{
local shield2 = self:getInven("MAINHAND") and self:getInven("MAINHAND")[1]
shield2 = shield2 and shield2.special_combat and shield2 or nil
if shield.wielder.resists then for res, v in pairs(shield.wielder.resists) do if v > 0 then bt[res] = true end end end
if shield.wielder.on_melee_hit then for res, v in pairs(shield.wielder.on_melee_hit) do if v > 0 then bt[res] = true end end end
if shield2 and shield2.wielder.resists then for res, v in pairs(shield2.wielder.resists) do if v > 0 then bt[res] = true end end end
if shield2 and shield2.wielder.on_melee_hit then for res, v in pairs(shield2.wielder.on_melee_hit) do if v > 0 then bt[res] = true end end end
if not self:attr("spectral_shield") then
if shield.wielder.resists then for res, v in pairs(shield.wielder.resists) do if v > 0 then bt[res] = true end end end
if shield.wielder.on_melee_hit then for res, v in pairs(shield.wielder.on_melee_hit) do if v > 0 then bt[res] = true end end end
if shield2 and shield2.wielder.resists then for res, v in pairs(shield2.wielder.resists) do if v > 0 then bt[res] = true end end end
if shield2 and shield2.wielder.on_melee_hit then for res, v in pairs(shield2.wielder.on_melee_hit) do if v > 0 then bt[res] = true end end end
else
bt[DamageType.FIRE] = true
bt[DamageType.LIGHTNING] = true
bt[DamageType.COLD] = true
bt[DamageType.ACID] = true
bt[DamageType.NATURE] = true
bt[DamageType.BLIGHT] = true
bt[DamageType.LIGHT] = true
bt[DamageType.DARKNESS] = true
bt[DamageType.ARCANE] = true
bt[DamageType.MIND] = true
bt[DamageType.TEMPORAL] = true
end
local n = 0
for t, _ in pairs(bt) do n = n + 1 end
......
......@@ -16,3 +16,24 @@
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
uberTalent{
name = "Spectral Shield",
mode = "passive",
require = { special={desc="Block talent, have mana and a block value over 200.", fct=function(self)
return self:knowTalent(self.T_BLOCK) and self:getTalentFromId(self.T_BLOCK).getBlockValue(self) >= 200 and self:getMaxMana() >= 70
end} },
on_learn = function(self, t)
self:attr("spectral_shield", 1)
self:attr("max_mana", -70)
end,
on_unlearn = function(self, t)
self:attr("spectral_shield", -1)
self:attr("max_mana", 70)
end,
info = function(self, t)
return ([[Infusing your shield with raw magic your Block can now block any damage type
Your maximum mana will be premanently reduced by 70 to create the effect.]])
:format()
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