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

New actor property: "talent_no_resources" to make individual talents cost no resources

parent b375ad5f
No related branches found
No related tags found
No related merge requests found
......@@ -4823,7 +4823,7 @@ function _M:preUseTalent(ab, silent, fake)
end
-- check resource costs (sustains can always be deactivated at no cost)
if not self:attr("force_talent_ignore_ressources") and not self:isTalentActive(ab.id) then
if not self:attr("force_talent_ignore_ressources") and not self:isTalentActive(ab.id) and (not self.talent_no_resources or not self.talent_no_resources[ab.id]) then
local rname, cost, rmin, rmax
-- check for sustained resources
self.on_preuse_checking_resources = true
......
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