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

gfx effect of nature's touch shows up on the target

Resting will not spam the log with messages about party members healing
parent b85cf97c
No related branches found
No related tags found
No related merge requests found
......@@ -1572,7 +1572,7 @@ function _M:onHeal(value, src)
end
-- print("[HEALING]", self.uid, self.name, "for", value)
if not self.resting and value + psi_heal >= 1 then
if (not self.resting and (not game.party:hasMember(self) or not game:getPlayer(true).resting)) and value + psi_heal >= 1 then
if game.level.map.seens(self.x, self.y) then
local sx, sy = game.level.map:getTileToScreen(self.x, self.y)
game.flyers:add(sx, sy, 30, rng.float(-3, -2), (rng.range(0,2)-1) * 0.5, tostring(math.ceil(value)), {255,255,0})
......
......@@ -93,8 +93,8 @@ newTalent{ short_name = "NATURE_TOUCH",
target:heal(self:mindCrit(20 + self:combatTalentMindDamage(t, 20, 500)), self)
target:attr("allow_on_heal", -1)
if core.shader.active(4) then
self:addParticles(Particles.new("shader_shield_temp", 1, {toback=true ,size_factor=1.5, y=-0.3, img="healgreen", life=25}, {type="healing", time_factor=2000, beamsCount=20, noup=2.0}))
self:addParticles(Particles.new("shader_shield_temp", 1, {toback=false,size_factor=1.5, y=-0.3, img="healgreen", life=25}, {type="healing", time_factor=2000, beamsCount=20, noup=1.0}))
target:addParticles(Particles.new("shader_shield_temp", 1, {toback=true ,size_factor=1.5, y=-0.3, img="healgreen", life=25}, {type="healing", time_factor=2000, beamsCount=20, noup=2.0}))
target:addParticles(Particles.new("shader_shield_temp", 1, {toback=false,size_factor=1.5, y=-0.3, img="healgreen", life=25}, {type="healing", time_factor=2000, beamsCount=20, noup=1.0}))
end
end
game:playSoundNear(self, "talents/heal")
......
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