fix(DB/Gameobjects): Spirit Candle should properly give buff to nearby players (#9690)
Fixes #8815
This commit is contained in:
parent
f1881a5136
commit
3b8e3eb609
2 changed files with 6 additions and 1 deletions
|
|
@ -0,0 +1,5 @@
|
|||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1639429050892480400');
|
||||
|
||||
DELETE FROM `gameobject_template_addon` WHERE `entry`=195089;
|
||||
INSERT INTO `gameobject_template_addon` VALUES
|
||||
(195089,35,0,0,0);
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue