mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +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
|
|
@ -386,19 +386,16 @@ void Group::Disband(bool hideDestroy)
|
|||
continue;
|
||||
|
||||
//we cannot call _removeMember because it would invalidate member iterator
|
||||
if (player)
|
||||
//if we are removing player from battleground raid
|
||||
if( isBGGroup() )
|
||||
player->RemoveFromBattleGroundRaid();
|
||||
else
|
||||
{
|
||||
//if we are removing player from battleground raid
|
||||
if( isBGGroup() )
|
||||
player->RemoveFromBattleGroundRaid();
|
||||
//we can remove player who is in battleground from his original group
|
||||
if( player->GetOriginalGroup() == this )
|
||||
player->SetOriginalGroup(NULL);
|
||||
else
|
||||
{
|
||||
//we can remove player who is in battleground from his original group
|
||||
if( player->GetOriginalGroup() == this )
|
||||
player->SetOriginalGroup(NULL);
|
||||
else
|
||||
player->SetGroup(NULL);
|
||||
}
|
||||
player->SetGroup(NULL);
|
||||
}
|
||||
|
||||
// quest related GO state dependent from raid membership
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue