[r2096] killing blow with Blood Grasp do not heal player
Moderator: Moderator
[r2096] killing blow with Blood Grasp do not heal player
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.
Re: [r2096] killing blow with Blood Grasp do not heal player
You could try this fix in tome/data/damage_types.lua:
This checks if there is anything there to start with, then if any damage is actually done (which is zero if there is no target) and finally heals and adds the log message.
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,
}
<DarkGod> lets say it's intended
Re: [r2096] killing blow with Blood Grasp do not heal player
fixed
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
