Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF: Wounds bug?
According to lib/archetypes,
attack type of wounds is godpower(AT_GODPOWER).
But wounds doesn't give damages to magic-immuned monsters.
The reason is that attacktype of wounds is actually godpower & magic
in the game. ^^^^^
S.Yoshioka and I don't know if current state of wounds is a bug.
But if it is a bug, the following patch is useful.
This patch is S.Yoshioka's work.
------ 8< ------- 8= ---------
*** server/spell_util.c.org Mon Feb 22 03:07:56 1999
--- server/spell_util.c Mon Feb 22 03:14:03 1999
***************
*** 973,980 ****
tmp->direction=dir;
set_owner(tmp,op);
#ifdef MULTIPLE_GODS /* needed for AT_HOLYWORD,AT_GODPOWER stuff */
! if(tmp->attacktype&AT_HOLYWORD||tmp->attacktype&AT_GODPOWER)
if(!tailor_god_spell(tmp,op)) return 0;
#endif
if(magic)
tmp->attacktype|=AT_MAGIC;
--- 973,981 ----
tmp->direction=dir;
set_owner(tmp,op);
#ifdef MULTIPLE_GODS /* needed for AT_HOLYWORD,AT_GODPOWER stuff */
! if(tmp->attacktype&AT_HOLYWORD||tmp->attacktype&AT_GODPOWER) {
if(!tailor_god_spell(tmp,op)) return 0;
+ } else
#endif
if(magic)
tmp->attacktype|=AT_MAGIC;
------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]