feat(Core/Scripting): Add OnPlayerLearnTaxiNode hook (#25288)

This commit is contained in:
Axel Cocat
2026-03-29 01:20:27 +01:00
committed by GitHub
parent f644e4522e
commit 0246faa95a
4 changed files with 19 additions and 0 deletions
+4
View File
@@ -142,6 +142,8 @@ bool WorldSession::SendLearnNewTaxiNode(Creature* unit)
update << uint8(1);
SendPacket(&update);
sScriptMgr->OnPlayerLearnTaxiNode(GetPlayer(), curloc);
return true;
}
else
@@ -154,6 +156,8 @@ void WorldSession::SendDiscoverNewTaxiNode(uint32 nodeid)
{
WorldPacket msg(SMSG_NEW_TAXI_PATH, 0);
SendPacket(&msg);
sScriptMgr->OnPlayerLearnTaxiNode(GetPlayer(), nodeid);
}
}