mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 13:21:28 +00:00
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:
commit
58883c2ed4
@ -2713,9 +2713,11 @@ 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));
|
||||||
FaceTarget(other);
|
if (other && !other->sneaking)
|
||||||
|
FaceTarget(other);
|
||||||
} else if(!IsMoving()) {
|
} else if(!IsMoving()) {
|
||||||
FaceTarget(other);
|
if (other && !other->sneaking && GetAppearance() != eaSitting && GetAppearance() != eaDead)
|
||||||
|
FaceTarget(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user