version 1.73 | | version 1.74 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.73 2002/09/05 06:11:40 mwedel Exp $"; | | * "$Id: attack.c,v 1.74 2002/09/07 05:55:18 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
* you summon vampires, you get some exp. Most of this code | | * you summon vampires, you get some exp. Most of this code |
* below is taken directly from kill_object | | * below is taken directly from kill_object |
*/ | | */ |
| | if (owner) { |
if (owner != hitter) { | | if (owner != hitter) { |
old_skill = owner->chosen_skill; | | old_skill = owner->chosen_skill; |
owner->chosen_skill = hitter->chosen_skill; | | owner->chosen_skill = hitter->chosen_skill; |
| | |
owner->exp_obj = NULL; | | owner->exp_obj = NULL; |
} | | } |
} | | } |
if (owner) { | | |
add_exp(owner,op->stats.exp/(rate*2)); | | add_exp(owner,op->stats.exp/(rate*2)); |
owner->chosen_skill = old_skill; | | owner->chosen_skill = old_skill; |
} else { | | } else { |