Added a hook for player::Update

This commit is contained in:
talamortis
2017-07-26 16:47:19 +01:00
committed by Yehonal
parent c15f15ebb0
commit f6ff4910c3
3 changed files with 12 additions and 0 deletions

View File

@@ -1574,6 +1574,8 @@ void Player::Update(uint32 p_time)
if (!IsInWorld())
return;
sScriptMgr->OnBeforePlayerUpdate(this, p_time);
// undelivered mail
if (m_nextMailDelivereTime && m_nextMailDelivereTime <= time(NULL))
{