Commit 1b65a3b8ddb5a8347c7bb5a6c4b4f4198370fc0b
1 parent
614abcb3
Life regeneration effects now disable other regen talents while active, to prevent wasting them
git-svn-id: http://svn.net-core.org/repos/t-engine4@3335 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
3 changed files
with
3 additions
and
0 deletions
... | ... | @@ -58,6 +58,7 @@ newInscription{ |
58 | 58 | type = {"inscriptions/infusions", 1}, |
59 | 59 | points = 1, |
60 | 60 | tactical = { HEAL = 2 }, |
61 | + on_pre_use = function(self, t) return not self:hasEffect(self.EFF_REGENERATION) end, | |
61 | 62 | action = function(self, t) |
62 | 63 | local data = self:getInscriptionData(t.short_name) |
63 | 64 | self:setEffect(self.EFF_REGENERATION, data.dur, {power=(data.heal + data.inc_stat) / data.dur}) | ... | ... |
... | ... | @@ -45,6 +45,7 @@ newTalent{ |
45 | 45 | no_energy = true, |
46 | 46 | cooldown = function(self, t) return 50 - self:getTalentLevel(t) * 5 end, |
47 | 47 | tactical = { HEAL = 2 }, |
48 | + on_pre_use = function(self, t) return not self:hasEffect(self.EFF_REGENERATION) end, | |
48 | 49 | action = function(self, t) |
49 | 50 | self:setEffect(self.EFF_REGENERATION, 10, {power=5 + self:getWil() * 0.5}) |
50 | 51 | return true | ... | ... |
... | ... | @@ -28,6 +28,7 @@ newTalent{ |
28 | 28 | cooldown = 10, |
29 | 29 | tactical = { HEAL = 2 }, |
30 | 30 | getRegeneration = function(self, t) return self:combatTalentSpellDamage(t, 5, 25) end, |
31 | + on_pre_use = function(self, t) return not self:hasEffect(self.EFF_REGENERATION) end, | |
31 | 32 | action = function(self, t) |
32 | 33 | self:setEffect(self.EFF_REGENERATION, 10, {power=t.getRegeneration(self, t)}) |
33 | 34 | game:playSoundNear(self, "talents/heal") | ... | ... |
-
Please register or login to post a comment