Scripts/IcecrownCitadel: correct Rimefang's script name

This commit is contained in:
Treeston
2020-09-06 21:00:38 +02:00
parent c9356190b7
commit fc3feebee9
2 changed files with 5 additions and 6 deletions

View File

@@ -810,7 +810,7 @@ public:
else
{
// The script uses a script name from database, but isn't assigned to anything.
TC_LOG_ERROR("sql.sql", "Script named '%s' does not have a script name assigned in database.",
TC_LOG_ERROR("sql.sql", "Script '%s' exists in the core, but the database does not assign it to any creature.",
script->GetName().c_str());
// Avoid calling "delete script;" because we are currently in the script constructor
@@ -1071,8 +1071,7 @@ void ScriptMgr::Initialize()
if (scriptName.empty())
continue;
TC_LOG_ERROR("sql.sql", "ScriptName '%s' exists in database, "
"but no core script found!", scriptName.c_str());
TC_LOG_ERROR("sql.sql", "Script '%s' is referenced by the database, but does not exist in the core!", scriptName.c_str());
}
TC_LOG_INFO("server.loading", ">> Loaded %u C++ scripts in %u ms",

View File

@@ -766,9 +766,9 @@ private:
bool _summoned;
};
struct npc_rimefang : public ScriptedAI
struct npc_rimefang_icc : public ScriptedAI
{
npc_rimefang(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript()), _summoned(false)
npc_rimefang_icc(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript()), _summoned(false)
{
Initialize();
}
@@ -1536,7 +1536,7 @@ void AddSC_boss_sindragosa()
RegisterIcecrownCitadelCreatureAI(boss_sindragosa);
RegisterIcecrownCitadelCreatureAI(npc_ice_tomb);
RegisterIcecrownCitadelCreatureAI(npc_spinestalker);
RegisterIcecrownCitadelCreatureAI(npc_rimefang);
RegisterIcecrownCitadelCreatureAI(npc_rimefang_icc);
RegisterIcecrownCitadelCreatureAI(npc_sindragosa_trash);
// Spells