mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core/LFG): implement ERR_PARTY_LFG_BOOT_NOT_ELIGIBLE_S and lower … (#8243)
This commit is contained in:
@@ -12127,7 +12127,7 @@ Player* Player::GetNextRandomRaidMember(float radius)
|
||||
return nearMembers[randTarget];
|
||||
}
|
||||
|
||||
PartyResult Player::CanUninviteFromGroup() const
|
||||
PartyResult Player::CanUninviteFromGroup(ObjectGuid targetPlayerGUID) const
|
||||
{
|
||||
Group const* grp = GetGroup();
|
||||
if (!grp)
|
||||
@@ -12157,9 +12157,16 @@ PartyResult Player::CanUninviteFromGroup() const
|
||||
if (itr->GetSource() && itr->GetSource()->IsInMap(this) && itr->GetSource()->IsInCombat())
|
||||
return ERR_PARTY_LFG_BOOT_IN_COMBAT;
|
||||
|
||||
if (Player* target = ObjectAccessor::FindConnectedPlayer(targetPlayerGUID))
|
||||
{
|
||||
if (target->HasAura(lfg::LFG_SPELL_DUNGEON_COOLDOWN))
|
||||
{
|
||||
return ERR_PARTY_LFG_BOOT_NOT_ELIGIBLE_S;
|
||||
}
|
||||
}
|
||||
|
||||
/* Missing support for these types
|
||||
return ERR_PARTY_LFG_BOOT_COOLDOWN_S;
|
||||
return ERR_PARTY_LFG_BOOT_NOT_ELIGIBLE_S;
|
||||
*/
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user