Skip to content
Snippets Groups Projects
Commit cef94c64 authored by DarkGod's avatar DarkGod
Browse files

Bathe in the Light now provides a damage shield to all affected creatures and...

Bathe in the Light now provides a damage shield to all affected creatures and fire damage to all damage creatures
parent cbc6e765
No related branches found
No related tags found
No related merge requests found
......@@ -1701,9 +1701,11 @@ newDamageType{
target:setEffect(target.EFF_EMPOWERED_HEALING, 1, {power=(dam/100)})
if dam >= 100 then target:attr("allow_on_heal", 1) end
target:heal(dam, src)
if not target:hasEffect(target.EFF_DAMAGE_SHIELD) then target:setEffect(target.EFF_DAMAGE_SHIELD, 2, {power=dam * util.bound((target.healing_factor or 1), 0, 2.5)}) end
if dam >= 100 then target:attr("allow_on_heal", -1) end
elseif target then
DamageType:get(DamageType.LIGHT).projector(src, x, y, DamageType.LIGHT, dam)
DamageType:get(DamageType.LIGHT).projector(src, x, y, DamageType.FIREBURN, {dam=dam, dur=2, initial=0})
end
end,
}
......
......@@ -78,7 +78,7 @@ newTalent{
local radius = self:getTalentRadius(t)
local heal = t.getHeal(self, t)
local duration = t.getDuration(self, t)
return ([[A magical zone of Sunlight appears around you, healing all within radius %d for %0.2f per turn and increasing healing effects on everyone within by %d%%. The effect lasts for %d turns.
return ([[A magical zone of Sunlight appears around you, healing and shielding all within radius %d for %0.2f per turn and increasing healing effects on everyone within by %d%%. The effect lasts for %d turns.
It also lights up the affected zone.
The amount healed will increase with the Magic stat]]):
format(radius, heal, heal, duration)
......
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