Scripts/Throne of the Tides: fixed the falling rocks visual

This commit is contained in:
Ovahlord committed 2023-01-04 21:26:11 +01:00
1 parent 99891604f6
commit ac35d440c0
4 files changed
+14 -4

No files matched your search

@@ -0,0 +1 @@
UPDATE `gameobject_template` SET `ScriptName`= 'go_tott_temp_falling_rocks' WHERE `entry`= 202742;
@@ -340,9 +340,6 @@ class instance_throne_of_the_tides : public InstanceMapScript
switch (go->GetEntry())
{
case GO_TEMP_FALLING_ROCKS:
go->SendCustomAnim(0);
break;
case GO_DOODAD_ABYSSAL_MAW_DOOR_1:
if (_eventIndex >= EVENT_INDEX_LADY_NAZJAR_GAUNTLET)
go->SetGoState(GO_STATE_ACTIVE);
@@ -366,6 +366,18 @@ private:
InstanceScript * _instance;
};
struct go_tott_temp_falling_rocks : public GameObjectAI
{
go_tott_temp_falling_rocks(GameObject* go) : GameObjectAI(go) { }
void JustAppeared() override
{
me->SetGoState(GO_STATE_ACTIVE);
me->SendCustomAnim(0);
}
};
class spell_tott_camera: public SpellScript
{
void HandleScriptEffect(SpellEffIndex /*effIndex*/)
@@ -511,6 +523,7 @@ void AddSC_throne_of_the_tides()
RegisterThroneOfTheTidesCreatureAI(npc_tott_lady_nazjar);
RegisterSpellScript(spell_tott_trigger_murloc);
RegisterGameObjectAI(go_tott_defense_system);
RegisterGameObjectAI(go_tott_temp_falling_rocks);
RegisterSpellScript(spell_tott_camera);
RegisterSpellScript(spell_tott_shock_defense_script);
RegisterSpellScript(spell_tott_ulthok_intro_visual_impact);
@@ -109,7 +109,6 @@ enum TotTCreatureIds
enum TotTGameObjectIds
{
GO_TEMP_FALLING_ROCKS = 202742,
GO_DOODAD_ABYSSAL_MAW_DOOR_1 = 204338,
GO_DOODAD_ABYSSAL_MAW_DOOR_2 = 204339,
GO_DOODAD_ABYSSAL_MAW_DOOR_4 = 204341,