version 1.68 | | version 1.69 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.68 2005/11/16 08:16:09 mwedel Exp $"; | | * "$Id: skills.c,v 1.69 2005/12/23 21:56:57 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if (attempt_steal(tmp, op, skill)) { | | if (attempt_steal(tmp, op, skill)) { |
if (tmp->type==PLAYER) /* no xp for stealing from another player */ | | if (tmp->type==PLAYER) /* no xp for stealing from another player */ |
return 0; | | return 0; |
else return (calc_skill_exp(op,tmp, skill)); | | |
| | /* no xp for stealing from pets (of players) */ |
| | if (QUERY_FLAG(tmp, FLAG_FRIENDLY) && tmp->attack_movement == PETMOVE) { |
| | object *owner = get_owner(tmp); |
| | if (owner != NULL && owner->type == PLAYER) |
| | return 0; |
| | } |
| | |
| | return (calc_skill_exp(op,tmp, skill)); |
} | | } |
} | | } |
return 0; | | return 0; |