mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
build fix
This commit is contained in:
@@ -18,6 +18,9 @@
|
||||
#ifndef DEF_NAXXRAMAS_H
|
||||
#define DEF_NAXXRAMAS_H
|
||||
|
||||
#include "CreatureAIImpl.h"
|
||||
|
||||
#define NaxxramasScriptName "instance_naxxramas"
|
||||
#define DataHeader "NAX"
|
||||
|
||||
uint32 const EncounterCount = 15;
|
||||
@@ -212,17 +215,12 @@ enum NAXInstanceTexts
|
||||
SAY_DIALOGUE_SAPPHIRON_LICH_KING2 = 2
|
||||
};
|
||||
|
||||
/*
|
||||
template<class AI>
|
||||
CreatureAI* GetNaxxramasAI(Creature* creature)
|
||||
{
|
||||
if (InstanceMap* instance = creature->GetMap()->ToInstanceMap())
|
||||
if (instance->GetInstanceScript())
|
||||
if (instance->GetScriptId() == sObjectMgr->GetScriptId(NaxxramasScriptName))
|
||||
return new AI(creature);
|
||||
|
||||
return NULL;
|
||||
template <class AI, class T>
|
||||
inline AI* GetNaxxramasAI(T* obj)
|
||||
{
|
||||
return GetInstanceAI<AI>(obj, NaxxramasScriptName);
|
||||
}
|
||||
*/
|
||||
#define RegisterNaxxramasCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetNaxxramasAI)
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user