Skip to content
Snippets Groups Projects
Commit 531a575a authored by Chris Davidson's avatar Chris Davidson
Browse files

Fix wand, totem, and torque damage tooltips not always using damDesc

parent 29abcbc9
No related branches found
No related tags found
1 merge request!5921.6.2 misc
......@@ -117,7 +117,7 @@ newEntity{
rarity = 10,
charm_power_def = {add=0, max=500, floor=true},
resolvers.charm(function(self, who)
local dam = self.use_power.damage(self, who)
local dam = who:damDesc(engine.DamageType.MIND, self.use_power.damage(self, who))
return ("blast the opponent's mind dealing %d mind damage and silencing them for 4 turns"):format(dam )
end,
15,
......
......@@ -63,7 +63,7 @@ newEntity{
charm_power_def = {add=0, max=600, floor=true}, -- Higher damage because the damage can be cleansed and is delayed
resolvers.charm(function(self, who)
local dam = self.use_power.damage(self, who)
local dam = who:damDesc(engine.DamageType.NATURE, self.use_power.damage(self, who))
return ("sting an enemy dealing %d nature damage over 7 turns and reducing their healing by 50%%%%"):format(dam, 50)
end,
15,
......
......@@ -104,7 +104,9 @@ newEntity{
charm_power_def = {add=0, max=500, floor=true},
resolvers.charm(function(self, who)
local dam = self.use_power.damage(self, who)
local dt = engine.DamageType[self.elem[3]:capitalize()]
local dam = who:damDesc(dt, self.use_power.damage(self, who))
return ("fire a magical bolt dealing %d %s damage"):format(dam, self.elem[3] )
end,
15,
......
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