Core/Conversation: Implemented OnConversationStart and OnConversationUpdate hooks
Port From (https://github.com/TrinityCore/TrinityCore/commit/7f14b64e093de23abb322b843b92260d9fe51123)
This commit is contained in:
@@ -48,6 +48,8 @@ namespace Game.Entities
|
||||
|
||||
public override void Update(uint diff)
|
||||
{
|
||||
Global.ScriptMgr.OnConversationUpdate(this, diff);
|
||||
|
||||
if (GetDuration() > TimeSpan.FromMilliseconds(diff))
|
||||
{
|
||||
_duration -= TimeSpan.FromMilliseconds(diff);
|
||||
@@ -177,6 +179,7 @@ namespace Game.Entities
|
||||
if (!GetMap().AddToMap(this))
|
||||
return false;
|
||||
|
||||
Global.ScriptMgr.OnConversationStart(this);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user