1 | /* |
1 | /* |
2 | * static char *rcsid_spell_attack_c = |
2 | * static char *rcsid_spell_attack_c = |
3 | * "$Id: spell_attack.C,v 1.4 2006/08/15 17:35:51 elmex Exp $"; |
3 | * "$Id: spell_attack.C,v 1.5 2006/08/26 23:36:34 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | |
6 | |
7 | /* |
7 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
8 | CrossFire, A Multiplayer game for X-windows |
… | |
… | |
137 | if (OB_TYPE_MOVE_BLOCK(tmp, GET_MAP_MOVE_BLOCK(m, sx, sy))) |
137 | if (OB_TYPE_MOVE_BLOCK(tmp, GET_MAP_MOVE_BLOCK(m, sx, sy))) |
138 | return; |
138 | return; |
139 | |
139 | |
140 | /* OK, we made a fork */ |
140 | /* OK, we made a fork */ |
141 | new_bolt = get_object(); |
141 | new_bolt = get_object(); |
142 | |
|
|
143 | copy_object(tmp,new_bolt); |
142 | copy_object(tmp,new_bolt); |
144 | |
143 | |
145 | /* reduce chances of subsequent forking */ |
144 | /* reduce chances of subsequent forking */ |
146 | new_bolt->stats.Dex -= 10; |
145 | new_bolt->stats.Dex -= 10; |
147 | tmp->stats.Dex -= 10; /* less forks from main bolt too */ |
146 | tmp->stats.Dex -= 10; /* less forks from main bolt too */ |