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

Skeleton's Re-Assemble can not be cheesed anymore

parent 6beb9d42
No related branches found
No related tags found
No related merge requests found
......@@ -82,16 +82,17 @@ newTalent{ short_name = "SKELETON_REASSEMBLE",
end,
tactical = { HEAL = 2 },
is_heal = true,
on_learn = function(self, t)
if self:getTalentLevelRaw(t) == 5 then
self:attr("self_resurrect", 1)
end
end,
on_unlearn = function(self, t)
if self:getTalentLevelRaw(t) == 4 then
self:attr("self_resurrect", -1)
end
end,
no_unlearn_last = true,
-- on_learn = function(self, t)
-- if self:getTalentLevelRaw(t) == 5 then
-- self:attr("self_resurrect", 1)
-- end
-- end,
-- on_unlearn = function(self, t)
-- if self:getTalentLevelRaw(t) == 4 then
-- self:attr("self_resurrect", -1)
-- end
-- end,
action = function(self, t)
self:attr("allow_on_heal", 1)
self:heal(t.getHeal(self, t), t)
......
......@@ -343,7 +343,7 @@ function _M:innerDisplayBack(x, y, nb_keyframes, tx, ty)
d.t:toScreenFull(x, y, d.w, d.h, d.tw, d.th, 1, 1, 1, 1)
end
if self.possible_items.skeleton then
local d = self.graphical_options.skeleton[self.cur_item and self.cur_item.action == "skeleton" and "available" or "unavailable"]
local d = self.graphical_options.skeleton[self.cur_item and (self.cur_item.action == "skeleton" or self.cur_item.action == "lichform") and "available" or "unavailable"]
d.t:toScreenFull(x, y + self.frame.h - d.h, d.w, d.h, d.tw, d.th, 1, 1, 1, 1)
end
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