mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
* Add new TransportScript::OnRelocate hook.
* TransportScript::OnUpdate is now called on every tick, not just on movement update. --HG-- branch : trunk
This commit is contained in:
@@ -1006,6 +1006,12 @@ void ScriptMgr::OnTransportUpdate(Transport* transport, uint32 diff)
|
||||
tmpscript->OnUpdate(transport, diff);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnRelocate(Transport* transport, uint32 mapId, float x, float y, float z)
|
||||
{
|
||||
GET_SCRIPT(TransportScript, transport->GetScriptId(), tmpscript);
|
||||
tmpscript->OnRelocate(transport, mapId, x, y, z);
|
||||
}
|
||||
|
||||
void SpellHandlerScript::RegisterSelf()
|
||||
{
|
||||
ScriptMgr::ScriptRegistry<SpellHandlerScript>::AddScript(this);
|
||||
|
||||
Reference in New Issue
Block a user