mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-27 22:16:11 +00:00
fix(Core/DynamicObject): Fix Death and Decay not ticking while stationary (#24205)
Co-authored-by: blinkysc <37940565+blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -272,3 +272,11 @@ void DynamicObject::UnbindFromCaster()
|
||||
_caster->_UnregisterDynObject(this);
|
||||
_caster = nullptr;
|
||||
}
|
||||
|
||||
bool DynamicObject::IsUpdateNeeded()
|
||||
{
|
||||
if (GetByteValue(DYNAMICOBJECT_BYTES, 0) == DYNAMIC_OBJECT_AREA_SPELL)
|
||||
return true;
|
||||
|
||||
return WorldObject::IsUpdateNeeded();
|
||||
}
|
||||
|
||||
@@ -62,6 +62,8 @@ public:
|
||||
|
||||
ObjectGuid const& GetOldFarsightGUID() const { return _oldFarsightGUID; }
|
||||
|
||||
bool IsUpdateNeeded() override;
|
||||
|
||||
protected:
|
||||
Aura* _aura;
|
||||
Aura* _removedAura;
|
||||
|
||||
Reference in New Issue
Block a user