Closed rude-jerk closed 3 years ago
When elements are fixed in release we might be able to remove the two tables altogether and just use Flame Breath and Fire element as offsets.
local lowest = 0
local lowest_res = target:getMod(tpz.mod.FIRERES)
for i = 1, i <= 5, 1 do
local res = target:getMod(tpz.mod.FIRERES + i)
if res < lowest_res then
lowest = i
lowest_res = res
end
end
table.insert(breaths, tpz.jobAbility.FLAME_BREATH + lowest)
But for now the tables are needed because the elements in release follow the wrong order.
I affirm:
https://www.bg-wiki.com/bg/Wyvern_(Dragoon_Pet)