Skip to content
Snippets Groups Projects
Commit 17b0fa7b authored by Tawny Harte's avatar Tawny Harte
Browse files

glyphs rework

parent b17716fa
No related branches found
No related tags found
1 merge request!5451.6 anorithil revisions2
......@@ -2002,6 +2002,11 @@ function _M:spellCrit(dam, add_chance, crit_power_add)
t.on_crit(self, t)
end
if self:knowTalent(self.T_GLYPHS) then
local t = self:getTalentFromId(self.T_GLYPHS)
t.on_crit(self, t)
end
if self:knowTalent(self.T_EYE_OF_THE_TIGER) then self:triggerTalent(self.T_EYE_OF_THE_TIGER, nil, "spell") end
self:fireTalentCheck("callbackOnCrit", "spell", dam, chance)
......
This diff is collapsed.
......@@ -1413,30 +1413,19 @@ newEffect{
name = "DIVINE_GLYPHS", image = "talents/glyph_of_repulsion.png",
desc = "Divine Glyphs",
long_desc = function(self, eff)
pGlyph = math.min(eff.maxStacks, eff.paraStacks or 0)*4
fGlyph = math.min(eff.maxStacks, eff.fatigueStacks or 0)*4
eGlyph = math.min(eff.maxStacks, eff.explosionStacks or 0)*4
if pGlyph > 0 then paralysis = (" +%d%% light resistance and affinitity."):format(pGlyph) end else paralysis = "" end
if fGlyph > 0 then fatigue = (" +%d%% darkness resistance and affinitity."):format(fGlyph) end else fatigue = "" end
if eGlyph > 0 then explosion = (" +%d%% light and darkness damage."):format(eGlyph) end else explosion = "" end
return ("A divine glyph recently triggered.%s%s%s"):format(paralysis, fatigue, explosion)
return ("A divine glyph recently triggered, providing %d%% light and darkness affinity and resistence."):format(math.min(eff.maxStacks, eff.glyphstacks or 1)*5)
end,
type = "magical",
subtype = {light=true, darkness=true},
status = "detrimental",
status = "beneficial",
paramters ={},
activate = function(self, eff)
local pGlyph = math.min(eff.maxStacks, eff.paraStacks or 0)*4
local fGlyph = math.min(eff.maxStacks, eff.fatigueStacks or 0)*4
local eGlyph = math.min(eff.maxStacks, eff.explosionStacks or 0)*4
self:effectTemporaryValue(eff, "damage_affinity", {[DamageType.LIGHT]=pGlyph, [DamageType.DARKNESS]=fGlyph})
self:effectTemporaryValue(eff, "resists", {[DamageType.LIGHT]=pGlyph, [DamageType.DARKNESS]=fGlyph})
self:effectTemporaryValue(eff, "inc_damage", {[DamageType.LIGHT]=eGlyph, [DamageType.DARKNESS]=eGlyph})
local power = math.min(eff.maxStacks, eff.glyphstacks or 1)*5
self:effectTemporaryValue(eff, "damage_affinity", {[DamageType.LIGHT]=power, [DamageType.DARKNESS]=power})
self:effectTemporaryValue(eff, "resists", {[DamageType.LIGHT]=power, [DamageType.DARKNESS]=power})
end,
on_merge = function(self, eff)
old_eff.paraStacks = old_eff.paraStacks + new_eff.paraStacks
old_eff.fatigueStacks = old_eff.fatigueStacks + new_eff.fatigueStacks
old_eff.explosionStacks = old_eff.explosionStacks + new_eff.explosionStacks
old_eff.glyphstacks = old_eff.glyphstacks + 1
old_eff.dur = new_eff.dur
return old_eff
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