Page 1 of 1

meditation breaks antimagic if there is sustained spell

Posted: Tue Dec 21, 2010 7:36 am
by hops
Suggest that meditation only re-activates the wild-gift sustains, if antimagic is not going to be totally mutually exclusive with sustained spells . Plus, semantically meditation should not interference with non wild-gift sustains imho.

Code: Select all

--- a/game/modules/tome/data/talents/gifts/call.lua
+++ b/game/modules/tome/data/talents/gifts/call.lua
@@ -41,7 +41,10 @@ newTalent{
                -- Deactivate all sustains to get a real reduction
                local reset = {}
                for tid, act in pairs(self.sustain_talents) do
-                       if act then reset[#reset+1] = tid end
+                       local t = self:getTalentFromId(tid)
+                       if t.sustain_equilibrium then
+                               if act then reset[#reset+1] = tid end
+                       end
                end
                for i, tid in ipairs(reset) do
                        self:forceUseTalent(tid, {ignore_energy=true, ignore_cd=true, no_equilibrium_fail=true

Re: meditation breaks antimagic if there is sustained spell

Posted: Tue Dec 21, 2010 8:33 am
by darkgod
right :)
Fixed