Skip to content
Snippets Groups Projects
Commit b373b8f6 authored by Tawny Harte's avatar Tawny Harte
Browse files

Added extremely cool emote when being saved by second life.

parent 9421d03e
No related branches found
No related tags found
No related merge requests found
......@@ -2726,7 +2726,10 @@ function _M:onTakeHit(value, src, death_note)
local value = self:heal(sl, self)
game.logSeen(self, "#YELLOW#%s has been healed by a blast of positive energy!#LAST#", self.name:capitalize())
if value > 0 then
if self.player then world:gainAchievement("AVOID_DEATH", self) end
if self.player then
self:setEmote(Emote.new("The Sun Protects!", 45))
world:gainAchievement("AVOID_DEATH", self)
end
end
end
......
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