… | |
… | |
1449 | |
1449 | |
1450 | next = obl->next; |
1450 | next = obl->next; |
1451 | if (get_owner (ob) == op) |
1451 | if (get_owner (ob) == op) |
1452 | if (++counter == target || (target == 0 && !strcasecmp (ob->name, params))) |
1452 | if (++counter == target || (target == 0 && !strcasecmp (ob->name, params))) |
1453 | { |
1453 | { |
1454 | if (!QUERY_FLAG (ob, FLAG_REMOVED)) |
|
|
1455 | ob->remove (); |
|
|
1456 | remove_friendly_object (ob); |
|
|
1457 | ob->destroy (0); |
1454 | ob->destroy (); |
1458 | removecount++; |
1455 | removecount++; |
1459 | } |
1456 | } |
1460 | } |
1457 | } |
1461 | if (removecount != 0) |
1458 | if (removecount != 0) |
1462 | new_draw_info_format (NDI_UNIQUE, 0, op, "killed %d pets.\n", removecount); |
1459 | new_draw_info_format (NDI_UNIQUE, 0, op, "killed %d pets.\n", removecount); |