mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
Added missed part from my prev. commit.
Compile fix. Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
61b2b3d234
commit
aae37a6dce
2 changed files with 11 additions and 9 deletions
|
|
@ -195,6 +195,16 @@ bool Group::LoadMemberFromDB(uint32 guidLow, uint8 subgroup, bool assistant)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Group::ConvertToRaid()
|
||||||
|
{
|
||||||
|
m_groupType = GROUPTYPE_RAID;
|
||||||
|
|
||||||
|
_initRaidSubGroupsCounter();
|
||||||
|
|
||||||
|
if(!isBGGroup()) CharacterDatabase.PExecute("UPDATE groups SET isRaid = 1 WHERE leaderGuid='%u'", GUID_LOPART(m_leaderGuid));
|
||||||
|
SendUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
bool Group::AddInvite(Player *player)
|
bool Group::AddInvite(Player *player)
|
||||||
{
|
{
|
||||||
if(!player || player->GetGroupInvite() || player->GetGroup())
|
if(!player || player->GetGroupInvite() || player->GetGroup())
|
||||||
|
|
|
||||||
|
|
@ -231,15 +231,8 @@ class MANGOS_DLL_SPEC Group
|
||||||
}
|
}
|
||||||
|
|
||||||
// some additional raid methods
|
// some additional raid methods
|
||||||
void ConvertToRaid()
|
void ConvertToRaid();
|
||||||
{
|
|
||||||
m_groupType = GROUPTYPE_RAID;
|
|
||||||
|
|
||||||
_initRaidSubGroupsCounter();
|
|
||||||
|
|
||||||
if(!isBGGroup()) CharacterDatabase.PExecute("UPDATE groups SET isRaid = 1 WHERE leaderGuid='%u'", GUID_LOPART(m_leaderGuid));
|
|
||||||
SendUpdate();
|
|
||||||
}
|
|
||||||
void SetBattlegroundGroup(BattleGround *bg) { m_bgGroup = bg; }
|
void SetBattlegroundGroup(BattleGround *bg) { m_bgGroup = bg; }
|
||||||
|
|
||||||
void ChangeMembersGroup(const uint64 &guid, const uint8 &group);
|
void ChangeMembersGroup(const uint64 &guid, const uint8 &group);
|
||||||
|
|
@ -329,7 +322,6 @@ class MANGOS_DLL_SPEC Group
|
||||||
|
|
||||||
void _removeRolls(const uint64 &guid);
|
void _removeRolls(const uint64 &guid);
|
||||||
|
|
||||||
void _convertToRaid();
|
|
||||||
bool _setMembersGroup(const uint64 &guid, const uint8 &group);
|
bool _setMembersGroup(const uint64 &guid, const uint8 &group);
|
||||||
bool _setAssistantFlag(const uint64 &guid, const bool &state);
|
bool _setAssistantFlag(const uint64 &guid, const bool &state);
|
||||||
bool _setMainTank(const uint64 &guid);
|
bool _setMainTank(const uint64 &guid);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue