version 1.120 | | version 1.121 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.120 2006/02/04 01:32:37 akirschbaum Exp $"; | | * "$Id: attack.c,v 1.121 2006/02/07 07:54:46 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if (tmp->map != map || tmp->x != x || tmp->y != y) | | if (tmp->map != map || tmp->x != x || tmp->y != y) |
continue; | | continue; |
| | |
| | /* Need to hit everyone in the transport with this spell */ |
| | if (tmp->type == TRANSPORT) { |
| | object *pl; |
| | |
| | for (pl=tmp->inv; pl; pl=pl->below) { |
| | if (pl->type == PLAYER) |
| | hit_player(pl,op->stats.dam,op,type,full_hit); |
| | } |
| | } |
| | |
if (QUERY_FLAG (tmp, FLAG_ALIVE)) { | | if (QUERY_FLAG (tmp, FLAG_ALIVE)) { |
hit_player(tmp,op->stats.dam,op,type,full_hit); | | hit_player(tmp,op->stats.dam,op,type,full_hit); |
retflag |=1; | | retflag |=1; |