mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
DB/Quest: Convert & update support for 'Cuergo's Gold' to SAI
Closes #24675
This commit is contained in:
@@ -651,41 +651,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## go_inconspicuous_landmark
|
||||
######*/
|
||||
|
||||
enum InconspicuousLandmark
|
||||
{
|
||||
SPELL_SUMMON_PIRATES_TREASURE_AND_TRIGGER_MOB = 11462,
|
||||
ITEM_CUERGOS_KEY = 9275,
|
||||
};
|
||||
|
||||
class go_inconspicuous_landmark : public GameObjectScript
|
||||
{
|
||||
public:
|
||||
go_inconspicuous_landmark() : GameObjectScript("go_inconspicuous_landmark") { }
|
||||
|
||||
struct go_inconspicuous_landmarkAI : public GameObjectAI
|
||||
{
|
||||
go_inconspicuous_landmarkAI(GameObject* go) : GameObjectAI(go) { }
|
||||
|
||||
bool GossipHello(Player* player) override
|
||||
{
|
||||
if (player->HasItemCount(ITEM_CUERGOS_KEY))
|
||||
return false;
|
||||
|
||||
player->CastSpell(player, SPELL_SUMMON_PIRATES_TREASURE_AND_TRIGGER_MOB, true);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
GameObjectAI* GetAI(GameObject* go) const override
|
||||
{
|
||||
return new go_inconspicuous_landmarkAI(go);
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## go_soulwell
|
||||
######*/
|
||||
@@ -1642,7 +1607,6 @@ void AddSC_go_scripts()
|
||||
new go_blood_filled_orb();
|
||||
new go_jotunheim_cage();
|
||||
new go_table_theka();
|
||||
new go_inconspicuous_landmark();
|
||||
new go_soulwell();
|
||||
new go_amberpine_outhouse();
|
||||
new go_hive_pod();
|
||||
|
||||
Reference in New Issue
Block a user