Skip to content
Snippets Groups Projects
Commit c070ca31 authored by DarkGod's avatar DarkGod
Browse files

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
parents 7ca1c50d c990dd40
No related branches found
No related tags found
1 merge request!717Fix bone shield resting forever on world map.
Pipeline #
...@@ -194,6 +194,7 @@ newTalent{ ...@@ -194,6 +194,7 @@ newTalent{
return "#LIGHT_GREEN#"..p.nb.."/"..t.getNb(self, t).."#LAST#", "buff_font_smaller" return "#LIGHT_GREEN#"..p.nb.."/"..t.getNb(self, t).."#LAST#", "buff_font_smaller"
end, end,
callbackOnRest = function(self, t) callbackOnRest = function(self, t)
if game and game.zone and game.zone.wilderness then return end
local nb = t.getNb(self, t) local nb = t.getNb(self, t)
local p = self.sustain_talents[t.id] local p = self.sustain_talents[t.id]
if not p or p.nb < nb then return true end if not p or p.nb < nb then return true end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment