diff options
author | Fraxinus94 <129908784+Fraxinus94@users.noreply.github.com> | 2024-01-08 13:31:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-08 19:31:41 +0100 |
commit | 7d9933150f20095ee03cea2e6e77c3fd62c513d9 (patch) | |
tree | 6c5f7a61db561d5652cda3d749f05c1a94d78873 | |
parent | 6e91e5c9db8104693608d16d1807433b97ec441e (diff) |
Scripts/TempleOfAhnQiraj (#29571)
Fix The Eye of C'thun spell Dark Glare not being updated visually with the correct orientation
-rw-r--r-- | src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp index 639011f9ff9..5eda5bcbd93 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp @@ -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(); |