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

CF: slaying and immune



Hello.  There is a bug report in Crossfire JP mailing list.

In server/attack.c, there is related conditions about slaying and 
immune.  But there are no relations between them, the bug
reporter said.  Is this a bug?

    if (hitter->slaying) {....}
    else if (op->immune&type){...}
    ^^^^
This is a patch for this.
-- 
iKAWAMOTO Yosihisa!               kawamoto@ics.es.osaka-u.ac.jp

*** /server/attack.c.old	Fri May 10 23:52:29 1996
--- /server/attack.c		Tue May 14 00:34:43 1996
***************
*** 481,487 ****
          dam *= 3; /* Ouch 8) */
      }
    }
!   else if (op->immune&type)
    {
      /* newtype contains what creature is not immune to from this attack */
      int newtype = type & ~op->immune;
--- 481,487 ----
          dam *= 3; /* Ouch 8) */
      }
    }
!   if (op->immune&type)
    {
      /* newtype contains what creature is not immune to from this attack */
      int newtype = type & ~op->immune;