Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF: a bug of magic bullet
The spell "magic bullet" causes no damage to the parts of multisquare
monsters.
This bug and the following patch is S.Yoshioka's work.
----- 8< ------- 8= ------ 8< --------
*** server/attack.c.orig Wed Mar 3 23:40:32 1999
--- server/attack.c Wed Mar 3 23:41:39 1999
***************
*** 679,686 ****
--- 679,688 ----
* return if only magic or nothing is left - under normal code
* we don't attack with pure magic if there is another attacktype.
*/
+ if (type & (AT_PARALYZE | AT_SLOW)) {
type &= ~(AT_PARALYZE | AT_SLOW);
if (!type || type==AT_MAGIC) return 0;
+ }
#endif
op=op->head;
}
------ 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]