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

This commit is contained in:
Ovahlord
2021-04-26 11:19:03 +02:00
parent dcd5716ecb
commit 63dbbc3309

View File

@@ -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;