}
}
- if ($elements[0] eq 'attack' and $elements[1] ne 'range' and $elements[2] eq 'cmp') {{
+ if ($elements[0] eq 'attack' and $elements[1] ne 'range' and $elements[2] eq 'dps') {{
my $type = $row->{$elements[0]}->{$elements[1]}->{type} or next;
if ($type eq 'explosive') {
$min /= 2;
my $out = showrange($row, 'attack', $area, 'damage');
$out .= '<span class="unit-splash">+</span>' if $_->{splash};
- $out .= '<td class="val hurt hurtrel">' . showrange($row, 'attack', $area, 'cmp');
+ $out .= '<td class="val hurt hurtrel">' . showrange($row, 'attack', $area, 'dps');
return $tagbase . $out;
}