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

Change NPC Mind Disruption to use a standard scaling function for confusion power

parent efaf02d8
No related branches found
No related tags found
1 merge request!443Effect changes
......@@ -541,15 +541,16 @@ newTalent{
tactical = { DISABLE = { confusion = 3 } },
target = function(self, t) return {type="hit", range=self:getTalentRange(t), talent=t} end,
getDuration = function(self, t) return math.floor(self:combatTalentScale(t, 3, 7)) end,
getConfusion = function(self, t) return math.floor(self:combatTalentScale(t, 15, 50)) end,
action = function(self, t)
local tg = self:getTalentTarget(t)
local x, y = self:getTarget(tg)
if not x or not y then return nil end
self:project(tg, x, y, DamageType.CONFUSION, {dur=t.getDuration(self, t), dam=50+self:getTalentLevelRaw(t)*10}, {type="manathrust"})
self:project(tg, x, y, DamageType.CONFUSION, {dur=t.getDuration(self, t), dam=t.getConfusion(self,t)}, {type="manathrust"})
return true
end,
info = function(self, t)
return ([[Try to confuse the target's mind for %d turns.]]):format(t.getDuration(self, t))
return ([[Try to confuse the target's mind for %d (power %d%%) turns.]]):format(t.getDuration(self, t), t.getConfusion(self, t))
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