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,8 +2713,10 @@ uint32 NPC::GetSpawnKillCount()
void NPC::DoQuestPause(Mob *other) { void NPC::DoQuestPause(Mob *other) {
if(IsMoving() && !IsOnHatelist(other)) { if(IsMoving() && !IsOnHatelist(other)) {
PauseWandering(RuleI(NPC, SayPauseTimeInSec)); PauseWandering(RuleI(NPC, SayPauseTimeInSec));
if (other && !other->sneaking)
FaceTarget(other); FaceTarget(other);
} else if(!IsMoving()) { } else if(!IsMoving()) {
if (other && !other->sneaking && GetAppearance() != eaSitting && GetAppearance() != eaDead)
FaceTarget(other); FaceTarget(other);
} }