version 1.14 | version 1.15 | |||
---|---|---|---|---|
|
| |||
if ($var eq "attacktype") { | if ($var eq "attacktype") { | |||
$at = 0; | $at = 0; | |||
foreach $t ( @values ) { | foreach $t ( @values ) { | |||
if ( $t =~ /\d+/ ) { | if ( $t =~ /^\d+$/ ) { | |||
$at += $t; | $at |= $t; | |||
} else { | } else { | |||
if ( defined( $attacktype{ $t } ) ) { | if ( defined( $attacktype{ $t } ) ) { | |||
$at += $attacktype{ $t }; | $at |= $attacktype{ $t }; | |||
} else { | } else { | |||
&warn($arch . " has invalid attacktype " . $t); | &warn($arch . " has invalid attacktype " . $t); | |||
} | } |
Legend:
|