Core/Dungeon Finder: Add lfg state to know if a player is using lfg or lfr
- Do not allow to join battleground if using lfg/lfr Closes issue 4189 --HG-- branch : trunk
This commit is contained in:
@@ -2265,6 +2265,9 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SetLfgRoles(uint8 _roles) { m_LookingForGroup.roles = _roles; }
|
||||
bool GetLfgUpdate() { return m_LookingForGroup.update; }
|
||||
void SetLfgUpdate(bool update) { m_LookingForGroup.update = update; }
|
||||
LfgState GetLfgState() { return m_LookingForGroup.state; }
|
||||
void SetLfgState(LfgState state) { m_LookingForGroup.state = state; }
|
||||
bool isUsingLfg() { return GetLfgState() != LFG_STATE_NONE; }
|
||||
|
||||
// Temporarily removed pet cache
|
||||
uint32 GetTemporaryUnsummonedPetNumber() const { return m_temporaryUnsummonedPetNumber; }
|
||||
|
||||
Reference in New Issue
Block a user