mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
fix(DB/Gameobjects): Spirit Candle should properly give buff to nearby players (#9690)
Fixes #8815
This commit is contained in:
@@ -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
|
// Note: this hack with search required until GO casting not implemented
|
||||||
// search unfriendly creature
|
// search unfriendly creature
|
||||||
if (owner) // hunter trap
|
if (owner && goInfo->trap.autoCloseTime != -1) // hunter trap
|
||||||
{
|
{
|
||||||
Acore::AnyUnfriendlyNoTotemUnitInObjectRangeCheck checker(this, owner, radius);
|
Acore::AnyUnfriendlyNoTotemUnitInObjectRangeCheck checker(this, owner, radius);
|
||||||
Acore::UnitSearcher<Acore::AnyUnfriendlyNoTotemUnitInObjectRangeCheck> searcher(this, target, checker);
|
Acore::UnitSearcher<Acore::AnyUnfriendlyNoTotemUnitInObjectRangeCheck> searcher(this, target, checker);
|
||||||
|
|||||||
Reference in New Issue
Block a user