… | |
… | |
1322 | } |
1322 | } |
1323 | } |
1323 | } |
1324 | else if (arrow->type == ARROW && arrow->race == type) |
1324 | else if (arrow->type == ARROW && arrow->race == type) |
1325 | { |
1325 | { |
1326 | /* allways prefer assasination/slaying */ |
1326 | /* allways prefer assasination/slaying */ |
1327 | if (target->race && arrow->slaying && arrow->slaying.contains (target->race)) |
1327 | if (target->race && arrow->slaying.contains (target->race)) |
1328 | { |
1328 | { |
1329 | if (arrow->attacktype & AT_DEATH) |
1329 | if (arrow->attacktype & AT_DEATH) |
1330 | { |
1330 | { |
1331 | *better = 100; |
1331 | *better = 100; |
1332 | return arrow; |
1332 | return arrow; |