Commit c070ca31683dfeaf1931b217febdd6f05f67445b
Merge branch 'bone-shield-rest-fix' into 'master'
Fix bone shield resting forever on world map. Fix bone shield resting forever on world map. See merge request !717
Showing
1 changed file
with
1 additions
and
0 deletions
@@ -194,6 +194,7 @@ newTalent{ | @@ -194,6 +194,7 @@ newTalent{ | ||
194 | return "#LIGHT_GREEN#"..p.nb.."/"..t.getNb(self, t).."#LAST#", "buff_font_smaller" | 194 | return "#LIGHT_GREEN#"..p.nb.."/"..t.getNb(self, t).."#LAST#", "buff_font_smaller" |
195 | end, | 195 | end, |
196 | callbackOnRest = function(self, t) | 196 | callbackOnRest = function(self, t) |
197 | + if game and game.zone and game.zone.wilderness then return end | ||
197 | local nb = t.getNb(self, t) | 198 | local nb = t.getNb(self, t) |
198 | local p = self.sustain_talents[t.id] | 199 | local p = self.sustain_talents[t.id] |
199 | if not p or p.nb < nb then return true end | 200 | if not p or p.nb < nb then return true end |
-
Please register or login to post a comment