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:
hondacrx
2023-01-23 00:27:30 -05:00
parent 7ab417f08b
commit 6b84616957
2 changed files with 4 additions and 0 deletions
@@ -393,6 +393,8 @@ namespace Game.Entities
{
m_Events.Update(diff);
base.Update(diff);
if (GetAI() != null)
GetAI().UpdateAI(diff);
else if (!AIM_Initialize())
+2
View File
@@ -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);