Scripts/TempleOfAhnQiraj (#29571)

Fix The Eye of C'thun spell Dark Glare not being updated visually with the correct orientation
This commit is contained in:
Fraxinus94
2024-01-08 13:31:41 -05:00
committed by GitHub
parent 6e91e5c9db
commit 7d9933150f

View File

@@ -342,10 +342,10 @@ public:
if (DarkGlareTickTimer <= diff)
{
//Set angle and cast
if (ClockWise)
me->SetOrientation(DarkGlareAngle + DarkGlareTick * float(M_PI) / 35);
else
me->SetOrientation(DarkGlareAngle - DarkGlareTick * float(M_PI) / 35);
float angle = ClockWise ? DarkGlareAngle + DarkGlareTick * float(M_PI) / 35 : DarkGlareAngle - DarkGlareTick * float(M_PI) / 35;
me->SetOrientation(angle);
me->SetFacingTo(angle);
me->StopMoving();