fix(DB/Gameobjects): Spirit Candle should properly give buff to nearby players (#9690)

Fixes #8815
This commit is contained in:
UltraNix
2021-12-17 18:29:08 +01:00
committed by GitHub
parent f1881a5136
commit 3b8e3eb609
2 changed files with 6 additions and 1 deletions

View File

@@ -681,7 +681,7 @@ void GameObject::Update(uint32 diff)
// Note: this hack with search required until GO casting not implemented
// search unfriendly creature
if (owner) // hunter trap
if (owner && goInfo->trap.autoCloseTime != -1) // hunter trap
{
Acore::AnyUnfriendlyNoTotemUnitInObjectRangeCheck checker(this, owner, radius);
Acore::UnitSearcher<Acore::AnyUnfriendlyNoTotemUnitInObjectRangeCheck> searcher(this, target, checker);