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:
Jasper
2026-02-23 20:25:49 +01:00
committed by GitHub
parent d39a03b7ab
commit e3f6693d1a
2 changed files with 10 additions and 0 deletions

View File

@@ -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();
}

View File

@@ -62,6 +62,8 @@ public:
ObjectGuid const& GetOldFarsightGUID() const { return _oldFarsightGUID; }
bool IsUpdateNeeded() override;
protected:
Aura* _aura;
Aura* _removedAura;