Skip to content
Snippets Groups Projects
Commit be0ffe1b authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@5062 51575b47-30f0-44d4-a5cc-537603b46e54
parent 1183201c
No related branches found
No related tags found
No related merge requests found
......@@ -108,13 +108,9 @@ newEntity{
level_range = {1, 50},
rarity = 6,
charm_power_def = {add=50, max=250, floor=true},
resolvers.charm("hardens the skin for 6 turns %d", 20, function(self, who)
local tg = {default_target=who, type="hit", nowarning=true, range=6 + who:getWil(4), first_target="friend"}
local x, y = who:getTarget(tg)
if not x or not y then return nil end
local dam = self:getCharmPower()
who:project(tg, x, y, engine.DamageType.HEAL, dam)
charm_power_def = {add=5, max=50, floor=true},
resolvers.charm("hardens the skin for 6 turns increasing armour by %d", 20, function(self, who)
who:setEffect(who.EFF_STONE_SKIN, 6, {power=self:getCharmPower()})
game:playSoundNear(who, "talents/heal")
game.logSeen(who, "%s uses %s!", who.name:capitalize(), self:getName{no_count=true})
return {id=true, used=true}
......
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