[r2096] killing blow with Blood Grasp do not heal player
Posted: Sun Dec 05, 2010 5:03 am
But the damage of the spell will be 1000+ with blood fury and crit for my corruptor, killing most mobs outright, making this spell much less useful.
Everything about ToME
https://forums.te4.org/
Code: Select all
-- Drain Life
newDamageType{
name = "drain life", type = "DRAINLIFE",
projector = function(src, x, y, type, dam)
if _G.type(dam) == "number" then dam = {dam=dam, healfactor=0.4} end
local target = game.level.map(x, y, Map.ACTOR)
local realdam = DamageType:get(DamageType.BLIGHT).projector(src, x, y, DamageType.BLIGHT, dam.dam)
if realdam > 0 then
src:heal(realdam * dam.healfactor)
game.logSeen(target, "%s drains life from %s!", src.name:capitalize(), target.name)
end
end,
}