hopefully fixed an issue with ex characters not getting a power table, also added an override property to stay in line with templating

This commit is contained in:
2021-10-30 18:01:04 -04:00
parent ae282950c7
commit 0c247b7578
2 changed files with 21 additions and 1 deletions

View File

@@ -776,6 +776,9 @@ function CDOTA_BaseNPC:THTD_GetGrowPower()
if thtd_power_table[unitName] == nil then
thtd_power_table[unitName] = thtd_power_table[THTD_GetCardQualityText(unitName)]
end
if thtd_power_table[unitName]["quality_override"] ~= nil then
thtd_power_table[unitName] = thtd_power_table[thtd_power_table[unitName]["quality_override"]]
end
return math.floor(thtd_power_table[unitName][self.thtd_star][1] + thtd_power_table[unitName][self.thtd_star][2] * (self:THTD_GetLevel()-1))
end