From f9ea18b64221d9cc29d42ccf38c265db7405b408 Mon Sep 17 00:00:00 2001 From: regneq Date: Sun, 22 Jul 2018 09:31:58 -0700 Subject: [PATCH] Quest NPCs will no longer turn and face their target if they are sneaking, sitting, or laying/playdead. --- zone/npc.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zone/npc.cpp b/zone/npc.cpp index e77ae0618..3ada452d1 100644 --- a/zone/npc.cpp +++ b/zone/npc.cpp @@ -2713,9 +2713,11 @@ uint32 NPC::GetSpawnKillCount() void NPC::DoQuestPause(Mob *other) { if(IsMoving() && !IsOnHatelist(other)) { PauseWandering(RuleI(NPC, SayPauseTimeInSec)); - FaceTarget(other); + if (other && !other->sneaking) + FaceTarget(other); } else if(!IsMoving()) { - FaceTarget(other); + if (other && !other->sneaking && GetAppearance() != eaSitting && GetAppearance() != eaDead) + FaceTarget(other); } }