4,951
edits
Falterfire (talk | contribs) (Added total duration for attacks with 3+ hits) |
Falterfire (talk | contribs) (Fixed a thing where some special attacks have a scalable number of attacks so total duration shouldn't be shown) |
||
Line 190: | Line 190: | ||
local spAttDuration = spAttInterval * (spAtt.attackCount - 1) | local spAttDuration = spAttInterval * (spAtt.attackCount - 1) | ||
spAttDesc = spAttDesc..Shared.round(spAttInterval / 1000, 2, 2)..'s delay between attacks.' | spAttDesc = spAttDesc..Shared.round(spAttInterval / 1000, 2, 2)..'s delay between attacks.' | ||
if | if spAtt.attackCount ~= nil and spAtt.attackCount > 1 then | ||
spAttDesc = spAttDesc..' '..Shared.round(spAttDuration / 1000, 2, 2)..'s total duration' | spAttDesc = spAttDesc..' '..Shared.round(spAttDuration / 1000, 2, 2)..'s total duration' | ||
end | end |