version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.9 2000/11/20 00:59:16 peterm Exp $"; | | * "$Id: monster.c,v 1.10 2000/11/24 01:16:01 peterm Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
object *find_enemy(object *npc) { | | object *find_enemy(object *npc) { |
object *tmp=NULL; | | object *tmp=NULL; |
| | |
if(QUERY_FLAG(npc,FLAG_BERSERK)) { | | /* if(QUERY_FLAG(npc,FLAG_BERSERK)) { |
return find_nearest_living_creature(npc); | | return find_nearest_living_creature(npc); |
} | | }*/ |
if ((npc->move_type & HI4) == PETMOVE) | | if ((npc->move_type & HI4) == PETMOVE) |
return get_pet_enemy(npc); | | return get_pet_enemy(npc); |
if((tmp=get_enemy(npc))==NULL) | | if((tmp=get_enemy(npc))==NULL) |