mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[7457] Fixed set Bg raid leader to party or raid leader who entered Bg.
Removed useless code from my previous patch. Signed-off-by: Triply <triply@getmangos.com>
This commit is contained in:
parent
435b53c853
commit
74006886e9
3 changed files with 15 additions and 13 deletions
|
|
@ -1162,7 +1162,12 @@ void BattleGround::AddOrSetPlayerToCorrectBgGroup(Player *plr, uint64 plr_guid,
|
|||
plr->SetBattleGroundRaid(group, subgroup);
|
||||
}
|
||||
else
|
||||
GetBgRaid(team)->AddMember(plr_guid, plr->GetName());
|
||||
{
|
||||
group->AddMember(plr_guid, plr->GetName());
|
||||
if( Group* originalGroup = plr->GetOriginalGroup() )
|
||||
if( originalGroup->IsLeader(plr_guid) )
|
||||
group->ChangeLeader(plr_guid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue