1 | |
1 | |
2 | /* |
2 | /* |
3 | * static char *rcsid_attack_c = |
3 | * static char *rcsid_attack_c = |
4 | * "$Id: attack.C,v 1.9 2006/09/10 15:59:57 root Exp $"; |
4 | * "$Id: attack.C,v 1.10 2006/09/11 11:46:52 root Exp $"; |
5 | */ |
5 | */ |
6 | |
6 | |
7 | /* |
7 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
8 | CrossFire, A Multiplayer game for X-windows |
9 | |
9 | |
… | |
… | |
907 | */ |
907 | */ |
908 | if (op->weight <= 5000 && tmp->stats.hp >= 0) |
908 | if (op->weight <= 5000 && tmp->stats.hp >= 0) |
909 | { |
909 | { |
910 | if (tmp->head != NULL) |
910 | if (tmp->head != NULL) |
911 | tmp = tmp->head; |
911 | tmp = tmp->head; |
|
|
912 | |
912 | remove_ob (op); |
913 | remove_ob (op); |
913 | op = insert_ob_in_ob (op, tmp); |
914 | op = insert_ob_in_ob (op, tmp); |
|
|
915 | |
914 | if (tmp->type == PLAYER) |
916 | if (tmp->type == PLAYER) |
915 | esrv_send_item (tmp, op); |
917 | esrv_send_item (tmp, op); |
|
|
918 | |
916 | return 1; |
919 | return 1; |
917 | } |
920 | } |
918 | else |
921 | else |
919 | return 0; |
922 | return 0; |
920 | } |
923 | } |