mirror of
https://github.com/tbamud/tbamud.git
synced 2025-09-22 05:50:48 +02:00
Fixed mob using player pref. -Rumble
This commit is contained in:
parent
86542d6681
commit
3936b7a4a1
2 changed files with 3 additions and 1 deletions
|
@ -36,6 +36,8 @@ Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
|
||||||
(lots of major bugfixes too)
|
(lots of major bugfixes too)
|
||||||
@
|
@
|
||||||
tbaMUD 3.57
|
tbaMUD 3.57
|
||||||
|
[Aug 27 2008] - Rumble
|
||||||
|
Fixed Mob using '((c)->player_specials->saved.pref)' at dg_variables.c:860
|
||||||
[Aug 11 2008] - Rumble
|
[Aug 11 2008] - Rumble
|
||||||
Updated World and files for 3.57 release.
|
Updated World and files for 3.57 release.
|
||||||
[Aug 10 2008] - Fizban
|
[Aug 10 2008] - Fizban
|
||||||
|
|
|
@ -857,7 +857,7 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
|
||||||
else if (!str_cmp(field, "pref") && IS_NPC(c)) {
|
else if (!str_cmp(field, "pref") && IS_NPC(c)) {
|
||||||
if (subfield && *subfield) {
|
if (subfield && *subfield) {
|
||||||
int pref = get_flag_by_name(preference_bits, subfield);
|
int pref = get_flag_by_name(preference_bits, subfield);
|
||||||
if (pref != NOFLAG && PRF_FLAGGED(c, pref))
|
if (!IS_NPC(c) && pref != NOFLAG && PRF_FLAGGED(c, pref))
|
||||||
strcpy(str, "1");
|
strcpy(str, "1");
|
||||||
else
|
else
|
||||||
strcpy(str, "0");
|
strcpy(str, "0");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue