mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
Core Hook - Remove temporary fix and document possible null in hook (#805)
* Remove workaround
Partially revert temporary crash fix a36e94a49a
* Update ScriptMgr.h
This commit is contained in:
@@ -76,8 +76,6 @@ Object::Object() : m_PackGUID(sizeof(uint64)+1)
|
|||||||
m_inWorld = false;
|
m_inWorld = false;
|
||||||
m_objectUpdated = false;
|
m_objectUpdated = false;
|
||||||
|
|
||||||
CustomData.Set("base",new DataMap::Base); // avoid crash when access not initialized CustomData
|
|
||||||
|
|
||||||
m_PackGUID.appendPackGUID(0);
|
m_PackGUID.appendPackGUID(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -445,6 +445,7 @@ public:
|
|||||||
virtual void OnDamage(Unit* /*attacker*/, Unit* /*victim*/, uint32& /*damage*/) { }
|
virtual void OnDamage(Unit* /*attacker*/, Unit* /*victim*/, uint32& /*damage*/) { }
|
||||||
|
|
||||||
// Called when DoT's Tick Damage is being Dealt
|
// Called when DoT's Tick Damage is being Dealt
|
||||||
|
// Attacker can be NULL if he is despawned while the aura still exists on target
|
||||||
virtual void ModifyPeriodicDamageAurasTick(Unit* /*target*/, Unit* /*attacker*/, uint32& /*damage*/) { }
|
virtual void ModifyPeriodicDamageAurasTick(Unit* /*target*/, Unit* /*attacker*/, uint32& /*damage*/) { }
|
||||||
|
|
||||||
// Called when Melee Damage is being Dealt
|
// Called when Melee Damage is being Dealt
|
||||||
|
|||||||
Reference in New Issue
Block a user