mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 08:00:48 +01:00
Core: Fixed compile
Core/Scripts: Compile and use spell scripts always, even if SCRIPTS not defined --HG-- branch : trunk
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "RefManager.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "ConditionMgr.h"
|
||||
#include "ItemPrototype.h"
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
#include "ScriptPCH.h"
|
||||
#include "ScriptLoader.h"
|
||||
|
||||
#ifdef SCRIPTS
|
||||
|
||||
//examples
|
||||
void AddSC_example_creature();
|
||||
@@ -25,6 +24,23 @@ void AddSC_example_escort();
|
||||
void AddSC_example_gossip_codebox();
|
||||
void AddSC_example_misc();
|
||||
|
||||
// spells
|
||||
void AddSC_deathknight_spell_scripts();
|
||||
void AddSC_druid_spell_scripts();
|
||||
void AddSC_generic_spell_scripts();
|
||||
void AddSC_hunter_spell_scripts();
|
||||
void AddSC_mage_spell_scripts();
|
||||
void AddSC_paladin_spell_scripts();
|
||||
void AddSC_priest_spell_scripts();
|
||||
void AddSC_rogue_spell_scripts();
|
||||
void AddSC_shaman_spell_scripts();
|
||||
void AddSC_warlock_spell_scripts();
|
||||
void AddSC_warrior_spell_scripts();
|
||||
void AddSC_quest_spell_scripts();
|
||||
void AddSC_item_spell_scripts();
|
||||
void AddSC_example_spell_scripts();
|
||||
|
||||
#ifdef SCRIPTS
|
||||
//world
|
||||
void AddSC_areatrigger_scripts();
|
||||
void AddSC_boss_emeriss();
|
||||
@@ -526,22 +542,6 @@ void AddSC_shattrath_city();
|
||||
void AddSC_terokkar_forest();
|
||||
void AddSC_zangarmarsh();
|
||||
|
||||
// spells
|
||||
void AddSC_deathknight_spell_scripts();
|
||||
void AddSC_druid_spell_scripts();
|
||||
void AddSC_generic_spell_scripts();
|
||||
void AddSC_hunter_spell_scripts();
|
||||
void AddSC_mage_spell_scripts();
|
||||
void AddSC_paladin_spell_scripts();
|
||||
void AddSC_priest_spell_scripts();
|
||||
void AddSC_rogue_spell_scripts();
|
||||
void AddSC_shaman_spell_scripts();
|
||||
void AddSC_warlock_spell_scripts();
|
||||
void AddSC_warrior_spell_scripts();
|
||||
void AddSC_quest_spell_scripts();
|
||||
void AddSC_item_spell_scripts();
|
||||
void AddSC_example_spell_scripts();
|
||||
|
||||
// battlegrounds
|
||||
|
||||
// outdoor pvp
|
||||
@@ -575,17 +575,14 @@ void AddScripts()
|
||||
|
||||
void AddExampleScripts()
|
||||
{
|
||||
#ifdef SCRIPTS
|
||||
AddSC_example_creature();
|
||||
AddSC_example_escort();
|
||||
AddSC_example_gossip_codebox();
|
||||
AddSC_example_misc();
|
||||
#endif
|
||||
}
|
||||
|
||||
void AddSpellScripts()
|
||||
{
|
||||
#ifdef SCRIPTS
|
||||
AddSC_deathknight_spell_scripts();
|
||||
AddSC_druid_spell_scripts();
|
||||
AddSC_generic_spell_scripts();
|
||||
@@ -600,7 +597,6 @@ void AddSpellScripts()
|
||||
AddSC_quest_spell_scripts();
|
||||
AddSC_item_spell_scripts();
|
||||
AddSC_example_spell_scripts();
|
||||
#endif
|
||||
}
|
||||
|
||||
void AddWorldScripts()
|
||||
|
||||
Reference in New Issue
Block a user