Core/Game: Include cleanup, part 4 - packets and largest headers (after preprocessing, except player/objectmgr)

This commit is contained in:
Shauren
2017-05-21 23:18:43 +02:00
parent 3cb8f532da
commit 3d7c2ef88f
101 changed files with 1048 additions and 826 deletions

View File

@@ -25,7 +25,6 @@
#include "MapManager.h"
#include "ObjectMgr.h"
#include "Pet.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "Transport.h"
#include "WaypointManager.h"
@@ -703,7 +702,7 @@ void Map::ScriptsProcess()
break;
case SF_CASTSPELL_SEARCH_CREATURE: // source -> creature with entry
uSource = source ? source->ToUnit() : NULL;
uTarget = uSource ? GetClosestCreatureWithEntry(uSource, abs(step.script->CastSpell.CreatureEntry), step.script->CastSpell.SearchRadius) : NULL;
uTarget = uSource ? uSource->FindNearestCreature(abs(step.script->CastSpell.CreatureEntry), step.script->CastSpell.SearchRadius) : NULL;
break;
}