Commit 7dee9241ca42e7bfe6083fe1cfc4dce1f029a94a
1 parent
b1cea170
Track is now a passive that works outside of combat
Showing
1 changed file
with
12 additions
and
13 deletions
... | ... | @@ -78,25 +78,24 @@ newTalent{ |
78 | 78 | name = "Track", |
79 | 79 | type = {"cunning/survival", 3}, |
80 | 80 | require = cuns_req3, |
81 | + mode = "passive", | |
81 | 82 | points = 5, |
82 | - random_ego = "utility", | |
83 | - cooldown = 20, | |
84 | 83 | radius = function(self, t) return math.floor(self:combatScale(self:getCun(10, true) * self:getTalentLevel(t), 5, 0, 35, 55)) end, |
85 | - getDuration = function(self, t) return math.floor(self:combatTalentScale(t, 4, 8)) end, | |
86 | 84 | no_npc_use = true, |
87 | - no_break_stealth = true, | |
88 | - action = function(self, t) | |
89 | - local rad = self:getTalentRadius(t) | |
90 | - self:setEffect(self.EFF_SENSE, t.getDuration(self, t), { | |
91 | - range = rad, | |
92 | - actor = 1, | |
93 | - }) | |
94 | - return true | |
85 | + callbackOnActBase = function(self, t) | |
86 | + if self.in_combat then return end | |
87 | + local eff = self:hasEffect(self.EFF_SENSE) | |
88 | + if eff then | |
89 | + eff.dur = 1 | |
90 | + else | |
91 | + self:setEffect(self.EFF_SENSE, 1, {range = self:getTalentRadius(t), actor = 1}) | |
92 | + end | |
95 | 93 | end, |
96 | 94 | info = function(self, t) |
97 | 95 | local rad = self:getTalentRadius(t) |
98 | - return ([[Sense foes around you in a radius of %d for %d turns. | |
99 | - The radius will increase with your Cunning.]]):tformat(rad, t.getDuration(self, t)) | |
96 | + return ([[While outside of combat you focus your senses to detect foes around you in a radius of %d. | |
97 | + When you enter combat you can not maintain the require focus and the effect quickly fades. | |
98 | + The radius will increase with your Cunning.]]):tformat(rad) | |
100 | 99 | end, |
101 | 100 | } |
102 | 101 | ... | ... |
-
Please register or login to post a comment