mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Enable gaining of group leadership while in raids
Note: raid leaders can only gain raid leadership, so they won't ever gain group leadership while leading a raid, even if they don't end up gaining group due to the restrictions. From what I can tell, this should be in line with live
This commit is contained in:
+18
-2
@@ -4256,12 +4256,28 @@ bool Client::IsLeadershipEXPOn() {
|
||||
|
||||
Group *g = GetGroup();
|
||||
|
||||
if(g && g->IsLeader(this) && (g->GroupCount() > 2))
|
||||
if (g && g->IsLeader(this) && g->GroupCount() > 2)
|
||||
return true;
|
||||
|
||||
Raid *r = GetRaid();
|
||||
|
||||
if(r && r->IsLeader(this) && (r->RaidCount() > 17))
|
||||
if (!r)
|
||||
return false;
|
||||
|
||||
// raid leaders can only gain raid AA XP
|
||||
if (r->IsLeader(this)) {
|
||||
if (r->RaidCount() > 17)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32 gid = r->GetGroup(this);
|
||||
|
||||
if (gid > 11) // not in a group
|
||||
return false;
|
||||
|
||||
if (r->IsGroupLeader(GetName()) && r->GroupCount(gid) > 2)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user