aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRushor <Rushor@users.noreply.github.com>2020-02-14 23:28:14 +0100
committerGitHub <noreply@github.com>2020-02-14 23:28:14 +0100
commit596b2d1ed70205e6f68f626d7363f5c197f7c81d (patch)
treeea84175d035c2b3365d7381037acdedeb370d23d
parent2a349dd390c4243d2b48ac57a934437f0a87080d (diff)
Scripts/Gameobject: Remove deprecated script for Cat Figurine (#24150)
Scripts/Gameobject: Remove deprecated script for Cat Figurine
-rw-r--r--sql/updates/world/3.3.5/2020_02_14_03_world.sql3
-rw-r--r--src/server/scripts/World/go_scripts.cpp33
2 files changed, 3 insertions, 33 deletions
diff --git a/sql/updates/world/3.3.5/2020_02_14_03_world.sql b/sql/updates/world/3.3.5/2020_02_14_03_world.sql
new file mode 100644
index 00000000000..b40217e8e5b
--- /dev/null
+++ b/sql/updates/world/3.3.5/2020_02_14_03_world.sql
@@ -0,0 +1,3 @@
+-- Cat Figurine SAI
+SET @ENTRY := 13873;
+UPDATE `gameobject_template` SET `AIName`="", `ScriptName`='' WHERE `entry`=@ENTRY;
diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp
index c7fbaf4894f..a5b6f9dc865 100644
--- a/src/server/scripts/World/go_scripts.cpp
+++ b/src/server/scripts/World/go_scripts.cpp
@@ -16,7 +16,6 @@
*/
/* ContentData
-go_cat_figurine (the "trap" version of GO, two different exist)
go_barov_journal
go_ethereum_prison
go_ethereum_stasis
@@ -61,37 +60,6 @@ EndContentData */
#include "WorldSession.h"
/*######
-## go_cat_figurine
-######*/
-
-enum CatFigurine
-{
- SPELL_SUMMON_GHOST_SABER = 5968,
-};
-
-class go_cat_figurine : public GameObjectScript
-{
-public:
- go_cat_figurine() : GameObjectScript("go_cat_figurine") { }
-
- struct go_cat_figurineAI : public GameObjectAI
- {
- go_cat_figurineAI(GameObject* go) : GameObjectAI(go) { }
-
- bool GossipHello(Player* player) override
- {
- player->CastSpell(player, SPELL_SUMMON_GHOST_SABER, true);
- return false;
- }
- };
-
- GameObjectAI* GetAI(GameObject* go) const override
- {
- return new go_cat_figurineAI(go);
- }
-};
-
-/*######
## go_barov_journal
######*/
@@ -2028,7 +1996,6 @@ public:
void AddSC_go_scripts()
{
- new go_cat_figurine();
new go_barov_journal();
new go_gilded_brazier();
new go_orb_of_command();