Core/Game: Include cleanup part 5

* ObjectMgr.h
* Player.h
* Unit.h
* G3D should no longer propagate everywhere from Spline/MotionMaster
This commit is contained in:
Shauren
2017-06-04 01:00:45 +02:00
parent ec72a59b08
commit b453e12423
442 changed files with 3521 additions and 2850 deletions

View File

@@ -18,6 +18,7 @@
#include "ScriptMgr.h"
#include "DatabaseEnv.h"
#include "Player.h"
#include "WorldSession.h"
enum IPLoggingTypes
{

View File

@@ -36,7 +36,9 @@ at_area_52_entrance
EndContentData */
#include "ScriptMgr.h"
#include "DB2Structure.h"
#include "GameObject.h"
#include "MotionMaster.h"
#include "ObjectAccessor.h"
#include "ScriptedCreature.h"
#include "Player.h"

View File

@@ -17,6 +17,7 @@
*/
#include "ScriptMgr.h"
#include "MotionMaster.h"
#include "ObjectAccessor.h"
#include "PassiveAI.h"
#include "ScriptedCreature.h"

View File

@@ -18,7 +18,9 @@
#include "ScriptMgr.h"
#include "Player.h"
#include "Pet.h"
#include "SpellHistory.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "World.h"
class DuelResetScript : public PlayerScript

View File

@@ -45,13 +45,16 @@ go_toy_train_set
EndContentData */
#include "ScriptMgr.h"
#include "DB2Structure.h"
#include "GameObject.h"
#include "GameObjectAI.h"
#include "Log.h"
#include "MotionMaster.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "TemporarySummon.h"
#include "WorldSession.h"
/*######
## go_cat_figurine

View File

@@ -31,6 +31,7 @@ EndContentData */
#include "ScriptMgr.h"
#include "GuardAI.h"
#include "MotionMaster.h"
#include "ObjectAccessor.h"
#include "Player.h"
#include "SpellInfo.h"

View File

@@ -24,11 +24,13 @@ SDCategory: NPCs
EndScriptData */
#include "ScriptMgr.h"
#include "Item.h"
#include "Log.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "WorldSession.h"
/*

View File

@@ -24,6 +24,7 @@
#include "GameObjectAI.h"
#include "GridNotifiersImpl.h"
#include "Log.h"
#include "MotionMaster.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "PassiveAI.h"
@@ -34,6 +35,7 @@
#include "SpellAuras.h"
#include "SpellHistory.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "TemporarySummon.h"
/*########
@@ -2035,10 +2037,10 @@ public:
break;
}
const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(spellId);
if (spellInfo && spellInfo->GetEffect(EFFECT_0)->Effect == SPELL_EFFECT_SUMMON_OBJECT_WILD)
return spellInfo->GetEffect(EFFECT_0)->MiscValue;
if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId))
if (SpellEffectInfo const* effect0 = spellInfo->GetEffect(EFFECT_0))
if (effect0->Effect == SPELL_EFFECT_SUMMON_OBJECT_WILD)
return effect0->MiscValue;
return 0;
}