- !$_->{attack}->[1] ? () : (
- '<tr><td colspan=12>', showattack($_, 1), '<td colspan=3>'
- ),
- !$_->{attack}->[2] ? () : (
- '<tr><td colspan=12>', showattack($_, 2), '<td colspan=3>'
- ),
+ (map {(
+ '<tr class="sub"><th class="cat"><td><td colspan=10>',
+ showattack($row, $_),
+ '<td colspan=3>',
+ )} 1 .. $#{ $_->{attack} }),