version 1.95 | | version 1.96 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.95 2005/11/09 19:34:17 akirschbaum Exp $"; | | * "$Id: monster.c,v 1.96 2006/01/07 18:30:05 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} /* no enemy */ | | } /* no enemy */ |
| | |
/* We have an enemy. Block immediately below is for pets */ | | /* We have an enemy. Block immediately below is for pets */ |
if((op->type&HI4) == PETMOVE && (owner = get_owner(op)) != NULL && !on_same_map(op,owner)) | | if((op->attack_movement&HI4) == PETMOVE && (owner = get_owner(op)) != NULL && !on_same_map(op,owner)) |
{ | | { |
follow_owner(op, owner); | | follow_owner(op, owner); |
/* If the pet was unable to follow the owner, free it */ | | /* If the pet was unable to follow the owner, free it */ |