On Fri, 3 Apr 1998, Thomas Smith wrote:
> struct char_data *victim;
>
> and changed this:
>
> if (PRF_FLAGGED(ch, PRF_AUTODIAG) && !IS_NPC(ch))
> send_to_char("\r\n", ch);
> diag_char_to_char(FIGHTING(ch), ch);
Change the above to:
if (PRF_FLAGG(ch, PRF_AUTODIAG) && !IS_NPC(ch) && FIGHTING(ch)) {
send_to_char("\r\n", ch);
diag_char_to_char(FIGHTING(ch), ch);
}
It will now check to make sure that the player is fighting someone before
trying to diagnose them.
John Evans <evansj@hi-line.net> -- http://www.hi-line.net/~evansj/
Any sufficiently advanced technology is indistinguishable from magic.
--Arthur C. Clarke
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST