mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[7254] Cleanups and batter checking in homebind/bgEntryPoint code.
* Load homebind data early in Player::LoadFromDB and use instead initital race points in cases need some safe point if current coordinate broken by some reason. * Store BG entry point in to WorldLocation and simplify calls. * Set bg entry point at GM teleports to battleground for correct auto-recall position at battleground end.
This commit is contained in:
parent
e97c7ad9c5
commit
8af53064eb
8 changed files with 58 additions and 65 deletions
|
|
@ -849,9 +849,7 @@ void BattleGround::RemovePlayerAtLeave(uint64 guid, bool Transport, bool SendPac
|
|||
plr->SetBGTeam(0);
|
||||
|
||||
if(Transport)
|
||||
{
|
||||
plr->TeleportTo(plr->GetBattleGroundEntryPointMap(), plr->GetBattleGroundEntryPointX(), plr->GetBattleGroundEntryPointY(), plr->GetBattleGroundEntryPointZ(), plr->GetBattleGroundEntryPointO());
|
||||
}
|
||||
plr->TeleportTo(plr->GetBattleGroundEntryPoint());
|
||||
|
||||
// Log
|
||||
sLog.outDetail("BATTLEGROUND: Removed player %s from BattleGround.", plr->GetName());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue