Scripts/GameObjects: fixed visuals for Firework gameobjects

This commit is contained in:
Ovahlord committed 2019-04-09 20:00:19 +02:00
1 parent ba49cac3aa
commit f0204840b2
2 files changed
+12

No files matched your search

@@ -0,0 +1 @@
UPDATE `gameobject_template` SET `ScriptName`= 'go_generic_firework' WHERE `entry` BETWEEN 180720 AND 180741;
+11
View File
@@ -1905,6 +1905,16 @@ public:
}
};
struct go_generic_firework : public GameObjectAI
{
go_generic_firework(GameObject* go) : GameObjectAI(go) { }
void InitializeAI() override
{
me->DespawnOrUnsummon(Milliseconds(urandms(10, 30)), 6s);
}
};
void AddSC_go_scripts()
{
new go_cat_figurine();
@@ -1946,4 +1956,5 @@ void AddSC_go_scripts()
new go_darkmoon_faire_music();
new go_pirate_day_music();
new go_bells();
RegisterGameObjectAI(go_generic_firework);
}