Core/Objects: Call base class Update function for Unit and GameObject (currently does nothing)
Port From (https://github.com/TrinityCore/TrinityCore/commit/3e85598d9987d674fb4d84728f776ebb85caf6b7)
This commit is contained in:
@@ -393,6 +393,8 @@ namespace Game.Entities
|
||||
{
|
||||
m_Events.Update(diff);
|
||||
|
||||
base.Update(diff);
|
||||
|
||||
if (GetAI() != null)
|
||||
GetAI().UpdateAI(diff);
|
||||
else if (!AIM_Initialize())
|
||||
|
||||
@@ -127,6 +127,8 @@ namespace Game.Entities
|
||||
|
||||
_UpdateSpells(diff);
|
||||
|
||||
base.Update(diff);
|
||||
|
||||
// If this is set during update SetCantProc(false) call is missing somewhere in the code
|
||||
// Having this would prevent spells from being proced, so let's crash
|
||||
Cypher.Assert(m_procDeep == 0);
|
||||
|
||||
Reference in New Issue
Block a user