Open Karth-Xyver opened 1 year ago
I was able to reproduce this issue. The moving unit is flagged with UNIT_STAT_ROAMING
and UNIT_STAT_ROAMING_MOVE
when WaypointReached
is called. Unit::IsStopped
(checks if UNIT_STAT_ROAMING_MOVE
is not set) returns false and Unit::SetFacingToObject
fails due to this condition:
// never face when already moving
if (!IsStopped())
{
return;
}
To me, that sounds like the behavior one would expect. If any intermediate waypoint is reached, then the unit is still in motion unless explicitly paused or stopped, which in Windsor's case happens through SetEscortPaused(true)
, but only after SetFacingToObject
is called. For SetFacingToObject
to work as expected, SetEscortPaused(true);
must be called first.
Bug Details
Verified on TBC and WotLK.
When an escort script calls
SetFacingToObject()
on the creature, its orientation should be changed so that it faces the target. Instead, it's set to 0 both client-side and server-side.I've noticed this happening within the first minute of an escort quest that is available in TBC but removed in WotLK. To make it available in WotLK (not Blizzlike, though):
Steps to Reproduce
Expected behavior
SetFacingToObject()
should face the target, not set orientation to 0.Suggested Workaround
No response
Crash Log
No response
Core SHA1 Commit Hash
030f1373f0b6dd301c27fd48689c382d5026051c
Database SHA1 Commit Hash
a5697bad928239af0a7884dfcda7c701030237ce
Operating System
Windows 10 x64
Client Version
3.3.5a (Wrath of the Lich King)