Module:Attacks/Tables: Difference between revisions

Fixed a thing where some special attacks have a scalable number of attacks so total duration shouldn't be shown
(Added total duration for attacks with 3+ hits)
(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 spAttDuration ~= spAttInterval then
             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