Basically change the healing power damage type to this.
Code: Select all
newDamageType{
name = "healing power", type = "HEALING_POWER",
projector = function(src, x, y, type, dam)
local target = game.level.map(x, y, Map.ACTOR)
if target and not target.undead and not target.demon then
target:setEffect(target.EFF_EMPOWERED_HEALING, 1, {power=(dam/100)})
target:heal(dam, src)
elseif target then
DamageType:get(DamageType.LIGHT).projector(src, x, y, DamageType.LIGHT, dam)
end
end,
}