From 0f4b20e1346cd5de8c8710039be99af296c08b90 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Fri, 22 Oct 2010 15:57:42 +0000 Subject: [PATCH] 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 --- game/modules/tome/class/interface/Combat.lua | 2 -- game/modules/tome/data/talents/techniques/magical-combat.lua | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/game/modules/tome/class/interface/Combat.lua b/game/modules/tome/class/interface/Combat.lua index 11e0d22053..dc3b6e5543 100644 --- a/game/modules/tome/class/interface/Combat.lua +++ b/game/modules/tome/class/interface/Combat.lua @@ -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) diff --git a/game/modules/tome/data/talents/techniques/magical-combat.lua b/game/modules/tome/data/talents/techniques/magical-combat.lua index f41ab66be2..4905f8470c 100644 --- a/game/modules/tome/data/talents/techniques/magical-combat.lua +++ b/game/modules/tome/data/talents/techniques/magical-combat.lua @@ -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))) -- GitLab