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->_UnregisterDynObject(this);
|
||||||
_caster = nullptr;
|
_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; }
|
ObjectGuid const& GetOldFarsightGUID() const { return _oldFarsightGUID; }
|
||||||
|
|
||||||
|
bool IsUpdateNeeded() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Aura* _aura;
|
Aura* _aura;
|
||||||
Aura* _removedAura;
|
Aura* _removedAura;
|
||||||
|
|||||||
Reference in New Issue
Block a user