Page 1 of 1

Making Bathe in Light more useful

Posted: Sat Jun 04, 2011 4:32 pm
by edge2054
Could we have Bathe in Light deal damage to undead and demons like the 'holy light' damage type does?

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,
}

Re: Making Bathe in Light more useful

Posted: Fri Jul 15, 2011 4:41 pm
by darkgod
yup