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

Reavers's Corrupted Strength talent now also provides a free melee attack on spellcast

git-svn-id: http://svn.net-core.org/repos/t-engine4@5305 51575b47-30f0-44d4-a5cc-537603b46e54
parent a8994438
No related branches found
No related tags found
No related merge requests found
......@@ -3099,6 +3099,16 @@ function _M:postUseTalent(ab, ret)
else
self:useEnergy()
end
-- Free melee blow
if self:knowTalent(self.T_CORRUPTED_STRENGTH) then
local tgts = {}
for _, c in pairs(util.adjacentCoords(self.x, self.y)) do
local target = game.level.map(c[1], c[2], Map.ACTOR)
if target and self:reactionToward(target) < 0 then tgts[#tgts+1] = target end
end
if #tgts > 0 then self:attackTarget(rng.table(tgts), DamageType.BLIGHT, self:combatTalentWeaponDamage(self.T_CORRUPTED_STRENGTH, 0.5, 1.1), true) end
end
end
local trigger = false
......
......@@ -32,7 +32,9 @@ newTalent{
end
end,
info = function(self, t)
return ([[Allows you to dual wield any type of one handed weapons and increases the damage of the off-hand weapon to %d%%.]]):format(100 / (2 - self:getTalentLevel(t) / 9))
return ([[Allows you to dual wield any type of one handed weapons and increases the damage of the off-hand weapon to %d%%.
Also casting a spell (which uses a turn) will give a free melee attack at a random target in melee range for %d%% blight damage.]]):
format(100 / (2 - self:getTalentLevel(t) / 9), 100 * self:combatTalentWeaponDamage(t, 0.5, 1.1))
end,
}
......
......@@ -69,6 +69,8 @@ function _M:parted(channel)
end
function _M:reconnect()
if not self.client.sock then return end
-- Rejoin every channels
print("[ONLINE PROFILE] reconnecting to channels")
for chan, _ in pairs(self.cjoined) do
......
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