fix double zhar aggro message
This commit is contained in:
parent
26fb3e4b57
commit
7cc64dd2c4
1 changed files with 1 additions and 0 deletions
|
|
@ -4541,6 +4541,7 @@ void OperateBookCase(int pnum, int i, bool sendmsg)
|
|||
SetRndSeed(object[i]._oRndSeed);
|
||||
CreateTypeItem(object[i]._ox, object[i]._oy, false, ITYPE_MISC, IMISC_BOOK, sendmsg, false);
|
||||
if (QuestStatus(Q_ZHAR)
|
||||
&& monster[MAX_PLRS]._mmode == MM_STAND // prevents playing the "angry" message for the second time if zhar got aggroed by losing vision and talking again
|
||||
&& monster[MAX_PLRS]._uniqtype - 1 == UMT_ZHAR
|
||||
&& monster[MAX_PLRS]._msquelch == UCHAR_MAX
|
||||
&& monster[MAX_PLRS]._mhitpoints) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue