diff options
author | Shauren <shauren.trinity@gmail.com> | 2017-05-21 23:18:43 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2017-05-21 23:18:43 +0200 |
commit | 3d7c2ef88f2ca3293a1df0411ad49e3eb5a96079 (patch) | |
tree | d9a92cf30fcf560d837e2b3b0a212a6834534f46 /src/server/game/Maps/MapScripts.cpp | |
parent | 3cb8f532dae1062c5f5bcda1b980463da99fe547 (diff) |
Core/Game: Include cleanup, part 4 - packets and largest headers (after preprocessing, except player/objectmgr)
Diffstat (limited to 'src/server/game/Maps/MapScripts.cpp')
-rw-r--r-- | src/server/game/Maps/MapScripts.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/Maps/MapScripts.cpp b/src/server/game/Maps/MapScripts.cpp index cc82334faa9..3dd766a8646 100644 --- a/src/server/game/Maps/MapScripts.cpp +++ b/src/server/game/Maps/MapScripts.cpp @@ -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; } |