mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Scripts/VP: updated remaining scripts to new model, applied coding standards and removed some unneeded function calls
This commit is contained in:
9
sql/updates/world/custom/custom_2019_08_15_01_world.sql
Normal file
9
sql/updates/world/custom/custom_2019_08_15_01_world.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
UPDATE `creature_template_movement` SET `Rooted`= 1 WHERE `CreatureId`= 45981;
|
||||
UPDATE `creature_template_movement` SET `Ground`= 0, `Swim`= 0, `Flight`= 1 WHERE `CreatureId` IN (45932, 45933);
|
||||
|
||||
UPDATE `creature_template` SET `difficulty_entry_1`= 52020 WHERE `entry`= 52019;
|
||||
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3 WHERE `entry`= 52020;
|
||||
|
||||
UPDATE `creature_template` SET `flags_extra`= 0x40000000, `mechanic_immune_mask`= 2 | 16 | 256 | 512 | 65536 | 131072 | 4194304 | 67108864 WHERE `entry` IN (45932, 45933, 52020, 52019);
|
||||
|
||||
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_arcane_barrage';
|
||||
@@ -4309,6 +4309,15 @@ void SpellMgr::LoadSpellInfoCorrections()
|
||||
spellInfo->RangeEntry = sSpellRangeStore.LookupEntry(2); // Combat Range
|
||||
});
|
||||
|
||||
// Arcane Barrage
|
||||
ApplySpellFix({
|
||||
87854,
|
||||
92756,
|
||||
}, [](SpellInfo* spellInfo)
|
||||
{
|
||||
spellInfo->MaxAffectedTargets = 1;
|
||||
});
|
||||
|
||||
// ENDOF THE VORTEX PINNACLE SPELLS
|
||||
|
||||
//
|
||||
|
||||
@@ -68,9 +68,9 @@ enum Points
|
||||
POINT_ROTATE = 1
|
||||
};
|
||||
|
||||
#define MAX_VORTEX_POINTS 8
|
||||
static constexpr uint8 MaxVortexPoints = 8;
|
||||
|
||||
Position const ErtansVortexPoints[MAX_VORTEX_POINTS] =
|
||||
Position const ErtansVortexPoints[MaxVortexPoints] =
|
||||
{
|
||||
{ -744.889f, 3.98611f, 635.6728f }, // South
|
||||
{ -737.552f, 21.592f, 635.6728f }, // South-West
|
||||
@@ -82,7 +82,7 @@ Position const ErtansVortexPoints[MAX_VORTEX_POINTS] =
|
||||
{ -737.649f, -13.5347f, 635.6728f } // South-East
|
||||
};
|
||||
|
||||
Position const ErtansVortexMiddlePoints[MAX_VORTEX_POINTS] =
|
||||
Position const ErtansVortexMiddlePoints[MaxVortexPoints] =
|
||||
{
|
||||
{ -724.3819f, 2.915083f, 635.6728f }, // South
|
||||
{ -724.0161f, 6.648534f, 635.6728f }, // South-West
|
||||
@@ -105,9 +105,9 @@ struct boss_grand_vizier_ertan : public BossAI
|
||||
instance->SendEncounterUnit(ENCOUNTER_FRAME_ENGAGE, me);
|
||||
Talk(SAY_AGGRO);
|
||||
|
||||
for (uint8 i = 0; i < MAX_VORTEX_POINTS; i++)
|
||||
for (uint8 i = 0; i < MaxVortexPoints; i++)
|
||||
if (Creature * ertansVortex = DoSummon(NPC_ERTANS_VORTEX, ErtansVortexPoints[i], 0, TEMPSUMMON_MANUAL_DESPAWN))
|
||||
ertansVortex->GetMotionMaster()->MovePoint(POINT_ROTATE + i, ErtansVortexPoints[i + 1 < MAX_VORTEX_POINTS ? i + 1 : 0]);
|
||||
ertansVortex->GetMotionMaster()->MovePoint(POINT_ROTATE + i, ErtansVortexPoints[i + 1 < MaxVortexPoints ? i + 1 : 0]);
|
||||
|
||||
events.ScheduleEvent(EVENT_STORMS_EDGE, 24s);
|
||||
events.ScheduleEvent(EVENT_LIGHTNING_BOLT, 1ms);
|
||||
@@ -199,7 +199,7 @@ struct npc_ertan_ertans_vortex : public NullCreatureAI
|
||||
if (movementType != POINT_MOTION_TYPE || pointId == POINT_NONE)
|
||||
return;
|
||||
|
||||
_nextPointId = pointId < MAX_VORTEX_POINTS ? pointId : 0;
|
||||
_nextPointId = pointId < MaxVortexPoints ? pointId : 0;
|
||||
_events.ScheduleEvent(EVENT_MOVE_POINT, 1ms);
|
||||
};
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -69,6 +69,8 @@ enum VPCreatureIds
|
||||
NPC_SLIPSTREAM_LANDING_ZONE = 45504,
|
||||
NPC_HOWLING_GALE = 45572,
|
||||
NPC_ZEPHYR = 45991,
|
||||
NPC_SKYFALL = 45981,
|
||||
NPC_SKYFALL_STAR = 52019,
|
||||
|
||||
// Grounding Field
|
||||
NPC_GROUNDING_FIELD = 47085
|
||||
|
||||
Reference in New Issue
Block a user