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

Dwarven Adventurers can use stone wardens talents

parent 117576e2
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,7 @@ local credits = {
{"Matt 'Amagad' Hill"},
{"Jeffrey 'Jotwebe' Buschhorn"},
{"Raymond 'Shockbolt' Gaustadnes"},
{"Richard 'Swoosh So Fast' Pallo"},
false,
false,
......
......@@ -57,7 +57,7 @@ newBirthDescriptor{
talents_types = function(birth)
local tts = {}
for _, class in ipairs(birth.all_classes) do
for _, sclass in ipairs(class.nodes) do if sclass.id ~= "Adventurer" and sclass.def and not sclass.def.not_on_random_boss then
for _, sclass in ipairs(class.nodes) do if sclass.id ~= "Adventurer" and sclass.def and ((not sclass.def.not_on_random_boss) or (sclass.id == "Stone Warden" and birth.descriptors_by_type.race == "Dwarf")) then
if birth.birth_descriptor_def.subclass[sclass.id].talents_types then
local tt = birth.birth_descriptor_def.subclass[sclass.id].talents_types
if type(tt) == "function" then tt = tt(birth) 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