mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Fixed cherry pick fail in c6881bd8a4
This commit is contained in:
@@ -598,9 +598,7 @@ void GameObject::Update(uint32 diff)
|
||||
// Hunter trap: Search units which are unfriendly to the trap's owner
|
||||
Trinity::NearestUnfriendlyNoTotemUnitInObjectRangeCheck checker(this, owner, radius);
|
||||
Trinity::UnitSearcher<Trinity::NearestUnfriendlyNoTotemUnitInObjectRangeCheck> searcher(this, target, checker);
|
||||
Cell::VisitGridObjects(this, searcher, radius);
|
||||
if (!target)
|
||||
Cell::VisitWorldObjects(this, searcher, radius);
|
||||
Cell::VisitAllObjects(this, searcher, radius);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user