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

for later

git-svn-id: http://svn.net-core.org/repos/t-engine4@6048 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4bf94561
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,19 @@ setDefaultProjector(function(src, x, y, type, dam, tmp, no_martyr)
if dam <= 0 then return add_dam end
end
if src:attr("elemental_mastery") then
local ndam = dam * 0.3
local old = src.elemental_mastery
src.elemental_mastery = nil
dam = 0
dam = dam + DamageType:get(DamageType.FIRE).projector(src, x, y, DamageType.FIRE, ndam, tmp, no_martyr)
dam = dam + DamageType:get(DamageType.COLD).projector(src, x, y, DamageType.COLD, ndam, tmp, no_martyr)
dam = dam + DamageType:get(DamageType.LIGHTNING).projector(src, x, y, DamageType.LIGHTNING, ndam, tmp, no_martyr)
dam = dam + DamageType:get(DamageType.ARCANE).projector(src, x, y, DamageType.ARCANE, ndam, tmp, no_martyr)
src.elemental_mastery = old
return dam
end
local terrain = game.level.map(x, y, Map.TERRAIN)
if terrain then terrain:check("damage_project", src, x, y, type, dam) end
......
......@@ -241,7 +241,7 @@ uberTalent{
return ([[All physical criticals reduce the remaining cooldown of a random technique or cunning talent by 2.
All spell criticals reduce the remaining cooldown of a random spell talent by 1.
All mind criticals reduce the remaining cooldown of a random wild gift/psionic/afflicted talent by 2.
This can only happen once per turn and can not affect the talent thtat procs it.]])
This can only happen once per turn and can not affect the talent that procs it.]])
: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