From 67f587d958fbd39bffecbabb1ba8322c2da4459e Mon Sep 17 00:00:00 2001 From: Anton Popovichenko Date: Sun, 29 Sep 2024 00:45:59 +0200 Subject: [PATCH] fix(CI/Codestyle): Fix codestyle CI error introduced with the new rule for ifs. (#20081) --- .../scripts/Outland/BlackTemple/boss_mother_shahraz.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp b/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp index bbcc99768..d0028399a 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp @@ -226,14 +226,14 @@ class spell_mother_shahraz_fatal_attraction : public SpellScript Position finalDest; // Check if the boss is near stairs to avoid players falling through the platform with random teleports. - if(GetCaster()->GetPositionY() < 194.f) + if (GetCaster()->GetPositionY() < 194.f) finalDest = validTeleportStairsPos[urand(0, 3)]; else { finalDest = GetCaster()->GetNearPosition(frand(minTeleportDist, maxTeleportDist), static_cast(rand_norm()) * static_cast(2 * M_PI), true); // Maybe not necessary but just in case to avoid LOS issues with an object - if(!GetCaster()->IsWithinLOS(finalDest.GetPositionX(), finalDest.GetPositionY(), finalDest.GetPositionZ())) + if (!GetCaster()->IsWithinLOS(finalDest.GetPositionX(), finalDest.GetPositionY(), finalDest.GetPositionZ())) finalDest = GetCaster()->GetNearPosition(frand(minTeleportDist, maxTeleportDist), static_cast(rand_norm()) * static_cast(2 * M_PI), true); /* @note: To avoid teleporting players near a walls, we will define a safe area.