Merge pull request #755 from regneq/master

Quest NPCs will no longer turn and face their target if they are snea…  …king, sitting, or laying/playdead.
This commit is contained in:
Michael Cook (mackal) 2018-07-22 12:56:59 -04:00 committed by GitHub
commit 58883c2ed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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