diff options
| author | Traesh <Traesh@users.noreply.github.com> | 2017-01-29 00:00:43 +0100 |
|---|---|---|
| committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-01-29 00:00:43 +0100 |
| commit | 6ab3877c91c9440b81cf1c7c66a1275ee04ea26a (patch) | |
| tree | 9930d19512eef247d1c0a23284caa446ceef21c8 /src/server/game/Grids/Notifiers | |
| parent | 5818dd364ca6a8b0cb068710291adf26b571aa23 (diff) | |
Core/Entities: Basic AreaTrigger System (#18035)
* Implemented AreaTrigger Templates
* Implemented AreaTrigger Splines
* Implemented SPELL_AURA_AREA_TRIGGER
* and many more
Diffstat (limited to 'src/server/game/Grids/Notifiers')
| -rw-r--r-- | src/server/game/Grids/Notifiers/GridNotifiers.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/Grids/Notifiers/GridNotifiers.h b/src/server/game/Grids/Notifiers/GridNotifiers.h index 311bb9dee48..f97f5ac298a 100644 --- a/src/server/game/Grids/Notifiers/GridNotifiers.h +++ b/src/server/game/Grids/Notifiers/GridNotifiers.h @@ -902,11 +902,11 @@ namespace Trinity class AnyUnitInObjectRangeCheck { public: - AnyUnitInObjectRangeCheck(WorldObject const* obj, float range) : i_obj(obj), i_range(range) { } + AnyUnitInObjectRangeCheck(WorldObject const* obj, float range, bool check3D = true) : i_obj(obj), i_range(range), i_check3D(check3D) { } bool operator()(Unit* u) const { - if (u->IsAlive() && i_obj->IsWithinDistInMap(u, i_range)) + if (u->IsAlive() && i_obj->IsWithinDistInMap(u, i_range, i_check3D)) return true; return false; @@ -915,6 +915,7 @@ namespace Trinity private: WorldObject const* i_obj; float i_range; + bool i_check3D; }; // Success at unit in range, range update for next check (this can be use with UnitLastSearcher to find nearest unit) |
