Minion damage conversion to player is now a flag and mod pair like cast speed/spell damage

Added tag conversion support so minion damage while player affected by herald works, and limits like on Indigon are correctly converted to have a max associated with the conversion rate
Added ModTools method to get the 'tags' from a mod
This commit is contained in:
Uilman
2020-10-14 20:14:47 -04:00
parent 9bcefea0c1
commit ae52dd4092
3 changed files with 56 additions and 24 deletions

View File

@@ -164,3 +164,13 @@ end
function modLib.formatMod(mod)
return modLib.formatValue(mod.value) .. " = " .. modLib.formatModParams(mod)
end
function modLib.extractModTags(mod)
local modIndex = 1
local list = {}
while mod[modIndex] do
list[modIndex] = mod[modIndex]
modIndex = modIndex + 1
end
return list
end