Quest NPCs will no longer turn and face their target if they are sneaking, sitting, or laying/playdead.

This commit is contained in:
regneq 2018-07-22 09:31:58 -07:00
parent 082641b1ad
commit f9ea18b642

View File

@ -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);
}
}