Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CF: another bug of cone spell



Using cone spell, we can get experiences of any skills.
This bug report and the following patch is S.Yoshioka's work.

The following temporary patch seems to be made with reference of the
function, "explode_object()".
In the function "move_bolt()" , "copy_object()" is used cleverly.
We think this style is more appropriate.

----- 8< -------- 8= -------- 8< ---------

*** server/spell_util.c.org	Thu Mar  4 00:00:45 1999
--- server/spell_util.c	Thu Mar  4 00:01:47 1999
***************
*** 1091,1096 ****
--- 1091,1100 ----
      if(ok_to_put_more(op->map,x,y,op,op->attacktype)) {
        object *tmp=arch_to_object(op->arch);
        set_owner(tmp,op->owner);
+       if(op->chosen_skill && (op->chosen_skill != tmp->chosen_skill)){
+ 	tmp->exp_obj = op->exp_obj;
+ 	tmp->chosen_skill = op->chosen_skill;
+       }
        tmp->x=x, tmp->y=y;
  /* added to make face of death work,and counterspell */
        /* tmp->level=op->level;*/  

------ 8= -------- 8< -------- 8= -----------

--------
--------------------------------------------------------------------------
Seikoh Nishita		      |	Dep't. of Information & Computer Sciences
			      |	Faculty of Engineering Science
[e-mail]		      |	Osaka University
s-nisita@ics.es.osaka-u.ac.jp |	Toyonaka, Osaka 560, Japan

-
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to crossfire-request@ifi.uio.no]