Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF: a bug of cone magic?
- To: crossfire (at) ifi.uio.no
- Subject: CF: a bug of cone magic?
- From: Nishita Seikoh <>
- Date: Sun, 15 Mar 1998 22:12:45 +0900
- Sender:
When players invoke burning hand to dragon,
cone of fire would step aside from dragon, since dragon has the
immunity to fire.
But actually, it wouldn't step aside.
I think this is a bug and following patch seems to work well.
*** server/spell_util.c.org Sun Mar 15 22:02:02 1998
--- server/spell_util.c Sun Mar 15 22:02:17 1998
***************
*** 825,831 ****
object *tmp,*head;
for(tmp=get_map_ob(m,x,y);tmp!=NULL;tmp=tmp->above) {
head=tmp->head==NULL?tmp:tmp->head;
! if((QUERY_FLAG(op, FLAG_ALIVE) && head->immune & immune_stop) ||
(head->stats.maxhp == op->stats.maxhp && head->type == op->type))
return 0;
}
--- 825,831 ----
object *tmp,*head;
for(tmp=get_map_ob(m,x,y);tmp!=NULL;tmp=tmp->above) {
head=tmp->head==NULL?tmp:tmp->head;
! if((QUERY_FLAG(head, FLAG_ALIVE) && head->immune & immune_stop) ||
(head->stats.maxhp == op->stats.maxhp && head->type == op->type))
return 0;
}
Recently, I report same sort of patch for poison attack,
and I found that my patch is not good because of misreading source
code.
Have I misread source code once again?_? > Peter
--------------------------------------------------------------------------
Seikoh Nishita | Dep't. of Information & Computer Sciences
| Faculty of Engineering Science
[e-mail] | Osaka University
| Toyonaka, Osaka 560, Japan
[to unsubscribe etc., send mail to ]