From 63dbbc3309d361a394853df122f17d6833a94d76 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Mon, 26 Apr 2021 11:19:03 +0200 Subject: [PATCH] Scripts/BoT: make Twilight Rupture a bit more flexible by allowing to set the length of the fissure and reduced the step length at which the fissure grows --- .../EasternKingdoms/BastionOfTwilight/bastion_of_twilight.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/BastionOfTwilight/bastion_of_twilight.cpp b/src/server/scripts/EasternKingdoms/BastionOfTwilight/bastion_of_twilight.cpp index 632bf33bd8f..dd444235840 100644 --- a/src/server/scripts/EasternKingdoms/BastionOfTwilight/bastion_of_twilight.cpp +++ b/src/server/scripts/EasternKingdoms/BastionOfTwilight/bastion_of_twilight.cpp @@ -257,9 +257,9 @@ class spell_bot_twilight_rupture : public SpellScript float angleVariance = 0.15f; float currentAngle = caster->GetOrientation(); bool left = true; - for (uint8 i = 0; i < 60; ++i) + for (int32 i = 0; i < GetEffectValue(); ++i) { - float forward = 1.5f * i; + float forward = 1.f * i; if (i >= 3 && !((i - 3) % 5)) left = !left;