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

Arcane Combat only casts Flame or Lightning, the other ones are more tatical and thus excluded

git-svn-id: http://svn.net-core.org/repos/t-engine4@1601 51575b47-30f0-44d4-a5cc-537603b46e54
parent 2d4368cc
No related branches found
No related tags found
No related merge requests found
......@@ -267,9 +267,7 @@ function _M:attackTargetWith(target, weapon, damtype, mult)
if hitted and not target.dead and self:knowTalent(self.T_ARCANE_COMBAT) and self:isTalentActive(self.T_ARCANE_COMBAT) and rng.percent(20 + self:getTalentLevel(self.T_ARCANE_COMBAT) * (1 + self:getDex(9, true))) then
local spells = {}
if self:knowTalent(self.T_FLAME) then spells[#spells+1] = self.T_FLAME end
if self:knowTalent(self.T_FLAMESHOCK) then spells[#spells+1] = self.T_FLAMESHOCK end
if self:knowTalent(self.T_LIGHTNING) then spells[#spells+1] = self.T_LIGHTNING end
if self:knowTalent(self.T_CHAIN_LIGHTNING) then spells[#spells+1] = self.T_CHAIN_LIGHTNING end
local tid = rng.table(spells)
if tid then
print("[ARCANE COMBAT] autocast ",self:getTalentFromId(tid).name)
......
......@@ -33,7 +33,7 @@ newTalent{
return true
end,
info = function(self, t)
return ([[Allows one to use a melee weapon to focus spells, granting %d%% chance per melee attack to deliver a Flame, Flameshock, Lightning, or Chain Lightning spell as a free action on the target.
return ([[Allows one to use a melee weapon to focus spells, granting %d%% chance per melee attack to deliver a Flame, or Lightning spell as a free action on the target.
Delivering the spell this way will not trigger a spell cooldown, but only works if the spell is not cooling-down.
The chance increases with dexterity.]]):
format(20 + self:getTalentLevel(t) * (1 + self:getDex(9, 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