mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core/Scripts: Fix array out of bounds in boss_mother_shahraz.cpp. (#17434)
Fix an error in Prismatic Shield auras and Fatal Attraction teleport points selection (was introduced infb63c8e915) (cherry picked from commit325ccab595)
This commit is contained in:
@@ -149,7 +149,7 @@ public:
|
||||
|
||||
void TeleportPlayers()
|
||||
{
|
||||
uint32 random = urand(0, 7);
|
||||
uint32 random = urand(0, 6);
|
||||
float X = TeleportPoint[random].x;
|
||||
float Y = TeleportPoint[random].y;
|
||||
float Z = TeleportPoint[random].z;
|
||||
@@ -210,7 +210,7 @@ public:
|
||||
break;
|
||||
case EVENT_PRISMATIC_SHIELD:
|
||||
// Random Prismatic Shield every 15 seconds.
|
||||
DoCast(me, PrismaticAuras[urand(0, 6)]);
|
||||
DoCast(me, PrismaticAuras[urand(0, 5)]);
|
||||
events.ScheduleEvent(EVENT_PRISMATIC_SHIELD, 15000);
|
||||
break;
|
||||
case EVENT_FATAL_ATTRACTION:
|
||||
|
||||
Reference in New Issue
Block a user